@@ -5601,16 +5601,7 @@ OPENSSL_EXPORT int SSL_CTX_set_tlsext_status_arg(SSL_CTX *ctx, void *arg);
5601
5601
SSL_R_TLSV1_ALERT_BAD_CERTIFICATE_HASH_VALUE
5602
5602
#define SSL_R_TLSV1_CERTIFICATE_REQUIRED SSL_R_TLSV1_ALERT_CERTIFICATE_REQUIRED
5603
5603
5604
- // The following symbols are compatibility aliases for equivalent functions that
5605
- // use the newer "group" terminology. New code should use the new functions for
5606
- // consistency, but we do not plan to remove these aliases.
5607
- #define SSL_CTX_set1_curves SSL_CTX_set1_groups
5608
- #define SSL_set1_curves SSL_set1_groups
5609
- #define SSL_CTX_set1_curves_list SSL_CTX_set1_groups_list
5610
- #define SSL_set1_curves_list SSL_set1_groups_list
5611
- #define SSL_get_curve_id SSL_get_group_id
5612
- #define SSL_get_curve_name SSL_get_group_name
5613
- #define SSL_get_all_curve_names SSL_get_all_group_names
5604
+ // The following symbols are compatibility aliases for |SSL_GROUP_*|.
5614
5605
#define SSL_CURVE_SECP224R1 SSL_GROUP_SECP224R1
5615
5606
#define SSL_CURVE_SECP256R1 SSL_GROUP_SECP256R1
5616
5607
#define SSL_CURVE_SECP384R1 SSL_GROUP_SECP384R1
@@ -5619,6 +5610,29 @@ OPENSSL_EXPORT int SSL_CTX_set_tlsext_status_arg(SSL_CTX *ctx, void *arg);
5619
5610
#define SSL_CURVE_SECP256R1_KYBER768_DRAFT00 SSL_GROUP_SECP256R1_KYBER768_DRAFT00
5620
5611
#define SSL_CURVE_X25519_KYBER768_DRAFT00 SSL_GROUP_X25519_KYBER768_DRAFT00
5621
5612
5613
+ // SSL_get_curve_id calls |SSL_get_group_id|.
5614
+ OPENSSL_EXPORT uint16_t SSL_get_curve_id (const SSL * ssl );
5615
+
5616
+ // SSL_get_curve_name calls |SSL_get_group_name|.
5617
+ OPENSSL_EXPORT const char * SSL_get_curve_name (uint16_t curve_id );
5618
+
5619
+ // SSL_get_all_curve_names calls |SSL_get_all_group_names|.
5620
+ OPENSSL_EXPORT size_t SSL_get_all_curve_names (const char * * out , size_t max_out );
5621
+
5622
+ // SSL_CTX_set1_curves calls |SSL_CTX_set1_groups|.
5623
+ OPENSSL_EXPORT int SSL_CTX_set1_curves (SSL_CTX * ctx , const int * curves ,
5624
+ size_t num_curves );
5625
+
5626
+ // SSL_set1_curves calls |SSL_set1_groups|.
5627
+ OPENSSL_EXPORT int SSL_set1_curves (SSL * ssl , const int * curves ,
5628
+ size_t num_curves );
5629
+
5630
+ // SSL_CTX_set1_curves_list calls |SSL_CTX_set1_groups_list|.
5631
+ OPENSSL_EXPORT int SSL_CTX_set1_curves_list (SSL_CTX * ctx , const char * curves );
5632
+
5633
+ // SSL_set1_curves_list calls |SSL_set1_groups_list|.
5634
+ OPENSSL_EXPORT int SSL_set1_curves_list (SSL * ssl , const char * curves );
5635
+
5622
5636
5623
5637
// Nodejs compatibility section (hidden).
5624
5638
//
@@ -5725,6 +5739,7 @@ OPENSSL_EXPORT int SSL_CTX_set_tlsext_status_arg(SSL_CTX *ctx, void *arg);
5725
5739
#define SSL_CTX_sess_set_cache_size SSL_CTX_sess_set_cache_size
5726
5740
#define SSL_CTX_set0_chain SSL_CTX_set0_chain
5727
5741
#define SSL_CTX_set1_chain SSL_CTX_set1_chain
5742
+ #define SSL_CTX_set1_curves SSL_CTX_set1_curves
5728
5743
#define SSL_CTX_set1_groups SSL_CTX_set1_groups
5729
5744
#define SSL_CTX_set_max_cert_list SSL_CTX_set_max_cert_list
5730
5745
#define SSL_CTX_set_max_send_fragment SSL_CTX_set_max_send_fragment
@@ -5760,6 +5775,7 @@ OPENSSL_EXPORT int SSL_CTX_set_tlsext_status_arg(SSL_CTX *ctx, void *arg);
5760
5775
#define SSL_session_reused SSL_session_reused
5761
5776
#define SSL_set0_chain SSL_set0_chain
5762
5777
#define SSL_set1_chain SSL_set1_chain
5778
+ #define SSL_set1_curves SSL_set1_curves
5763
5779
#define SSL_set1_groups SSL_set1_groups
5764
5780
#define SSL_set_max_cert_list SSL_set_max_cert_list
5765
5781
#define SSL_set_max_send_fragment SSL_set_max_send_fragment
0 commit comments