summaryrefslogtreecommitdiffstats
path: root/ssl/statem
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/statem
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/statem')
-rw-r--r--ssl/statem/statem_lib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c
index 5d89b75c05..44cf5a6ce0 100644
--- a/ssl/statem/statem_lib.c
+++ b/ssl/statem/statem_lib.c
@@ -14,7 +14,6 @@
#include "../ssl_local.h"
#include "statem_local.h"
#include "internal/cryptlib.h"
-#include "internal/evp.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
@@ -1555,8 +1554,7 @@ static int is_tls13_capable(const SSL *s)
* more restrictive so check that our sig algs are consistent with this
* EC cert. See section 4.2.3 of RFC8446.
*/
- curve = evp_pkey_get_EC_KEY_curve_nid(s->cert->pkeys[SSL_PKEY_ECC]
- .privatekey);
+ curve = ssl_get_EC_curve_nid(s->cert->pkeys[SSL_PKEY_ECC].privatekey);
if (tls_check_sigalg_curve(s, curve))
return 1;
#else