diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-01-20 14:01:01 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-01-26 15:26:49 +0100 |
commit | 0c8e98e615d3522592a5bde6fcef43e42eb70deb (patch) | |
tree | d4cde4d46f67f9d2baf6a5d9c7bf8982699d856f /test | |
parent | f377e58fde1a7e6b29067c48df7d3c04fdaeba38 (diff) |
Avoid using OSSL_PKEY_PARAM_GROUP_NAME when the key might be legacy
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13139)
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/handshake.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/helpers/handshake.c b/test/helpers/handshake.c index 0711639fd1..e286df6cf0 100644 --- a/test/helpers/handshake.c +++ b/test/helpers/handshake.c @@ -1271,17 +1271,14 @@ static char *dup_str(const unsigned char *in, size_t len) static int pkey_type(EVP_PKEY *pkey) { -#ifndef OPENSSL_NO_EC if (EVP_PKEY_is_a(pkey, "EC")) { char name[80]; size_t name_len; - if (!EVP_PKEY_get_utf8_string_param(pkey, OSSL_PKEY_PARAM_GROUP_NAME, - name, sizeof(name), &name_len)) + if (!EVP_PKEY_get_group_name(pkey, name, sizeof(name), &name_len)) return NID_undef; return OBJ_txt2nid(name); } -#endif return EVP_PKEY_id(pkey); } |