@@ -5256,23 +5256,37 @@ OPENSSL_EXPORT int SSL_CTX_set_tlsext_status_arg(SSL_CTX *ctx, void *arg);
5256
5256
SSL_R_TLSV1_ALERT_BAD_CERTIFICATE_HASH_VALUE
5257
5257
#define SSL_R_TLSV1_CERTIFICATE_REQUIRED SSL_R_TLSV1_ALERT_CERTIFICATE_REQUIRED
5258
5258
5259
- // The following symbols are compatibility aliases for equivalent functions that
5260
- // use the newer "group" terminology. New code should use the new functions for
5261
- // consistency, but we do not plan to remove these aliases.
5262
- #define SSL_CTX_set1_curves SSL_CTX_set1_groups
5263
- #define SSL_set1_curves SSL_set1_groups
5264
- #define SSL_CTX_set1_curves_list SSL_CTX_set1_groups_list
5265
- #define SSL_set1_curves_list SSL_set1_groups_list
5266
- #define SSL_get_curve_id SSL_get_group_id
5267
- #define SSL_get_curve_name SSL_get_group_name
5268
- #define SSL_get_all_curve_names SSL_get_all_group_names
5259
+ // The following symbols are compatibility aliases for |SSL_GROUP_*|.
5269
5260
#define SSL_CURVE_SECP224R1 SSL_GROUP_SECP224R1
5270
5261
#define SSL_CURVE_SECP256R1 SSL_GROUP_SECP256R1
5271
5262
#define SSL_CURVE_SECP384R1 SSL_GROUP_SECP384R1
5272
5263
#define SSL_CURVE_SECP521R1 SSL_GROUP_SECP521R1
5273
5264
#define SSL_CURVE_X25519 SSL_GROUP_X25519
5274
5265
#define SSL_CURVE_X25519_KYBER768_DRAFT00 SSL_GROUP_X25519_KYBER768_DRAFT00
5275
5266
5267
+ // SSL_get_curve_id calls |SSL_get_group_id|.
5268
+ OPENSSL_EXPORT uint16_t SSL_get_curve_id (const SSL * ssl );
5269
+
5270
+ // SSL_get_curve_name calls |SSL_get_group_name|.
5271
+ OPENSSL_EXPORT const char * SSL_get_curve_name (uint16_t curve_id );
5272
+
5273
+ // SSL_get_all_curve_names calls |SSL_get_all_group_names|.
5274
+ OPENSSL_EXPORT size_t SSL_get_all_curve_names (const char * * out , size_t max_out );
5275
+
5276
+ // SSL_CTX_set1_curves calls |SSL_CTX_set1_groups|.
5277
+ OPENSSL_EXPORT int SSL_CTX_set1_curves (SSL_CTX * ctx , const int * curves ,
5278
+ size_t num_curves );
5279
+
5280
+ // SSL_set1_curves calls |SSL_set1_groups|.
5281
+ OPENSSL_EXPORT int SSL_set1_curves (SSL * ssl , const int * curves ,
5282
+ size_t num_curves );
5283
+
5284
+ // SSL_CTX_set1_curves_list calls |SSL_CTX_set1_groups_list|.
5285
+ OPENSSL_EXPORT int SSL_CTX_set1_curves_list (SSL_CTX * ctx , const char * curves );
5286
+
5287
+ // SSL_set1_curves_list calls |SSL_set1_groups_list|.
5288
+ OPENSSL_EXPORT int SSL_set1_curves_list (SSL * ssl , const char * curves );
5289
+
5276
5290
// TLSEXT_nid_unknown is a constant used in OpenSSL for
5277
5291
// |SSL_get_negotiated_group| to return an unrecognized group. BoringSSL never
5278
5292
// returns this value, but we define this constant for compatibility.
@@ -5444,6 +5458,7 @@ OPENSSL_EXPORT int SSL_set_compliance_policy(
5444
5458
#define SSL_CTX_sess_set_cache_size SSL_CTX_sess_set_cache_size
5445
5459
#define SSL_CTX_set0_chain SSL_CTX_set0_chain
5446
5460
#define SSL_CTX_set1_chain SSL_CTX_set1_chain
5461
+ #define SSL_CTX_set1_curves SSL_CTX_set1_curves
5447
5462
#define SSL_CTX_set1_groups SSL_CTX_set1_groups
5448
5463
#define SSL_CTX_set_max_cert_list SSL_CTX_set_max_cert_list
5449
5464
#define SSL_CTX_set_max_send_fragment SSL_CTX_set_max_send_fragment
@@ -5478,6 +5493,7 @@ OPENSSL_EXPORT int SSL_set_compliance_policy(
5478
5493
#define SSL_session_reused SSL_session_reused
5479
5494
#define SSL_set0_chain SSL_set0_chain
5480
5495
#define SSL_set1_chain SSL_set1_chain
5496
+ #define SSL_set1_curves SSL_set1_curves
5481
5497
#define SSL_set1_groups SSL_set1_groups
5482
5498
#define SSL_set_max_cert_list SSL_set_max_cert_list
5483
5499
#define SSL_set_max_send_fragment SSL_set_max_send_fragment
0 commit comments