summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_local.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-18 10:43:50 +0100
committerRichard Levitte <levitte@openssl.org>2020-12-08 20:13:54 +0100
commitd8975dec0c3f41a491345f8a3c02612eaf8b30f7 (patch)
treecbfdfa5715166c791a9e055a0668b7eb58261776 /ssl/ssl_local.h
parent88bddad42ee27483d153a0b0c0edd13b2b5fdbc0 (diff)
TLS: Use EVP_PKEY_get_group_name() to get the group name
For the moment, we translate the result to a NID, because that's still used in several locations in libssl. Future development should change all the internals to be name based instead. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13436)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r--ssl/ssl_local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h
index d0fd8b926b..c2a4087c3b 100644
--- a/ssl/ssl_local.h
+++ b/ssl/ssl_local.h
@@ -807,6 +807,8 @@ int ssl_hmac_final(SSL_HMAC *ctx, unsigned char *md, size_t *len,
size_t max_size);
size_t ssl_hmac_size(const SSL_HMAC *ctx);
+int ssl_get_EC_curve_nid(const EVP_PKEY *pkey);
+
typedef struct tls_group_info_st {
char *tlsname; /* Curve Name as in TLS specs */
char *realname; /* Curve Name according to provider */