summaryrefslogtreecommitdiffstats
path: root/test/evp_extra_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-03-11 16:04:16 +0100
committerRichard Levitte <levitte@openssl.org>2021-04-18 10:10:24 +0200
commita0fff549e6635000a545ac7d1e7a8102c1e614f1 (patch)
tree154fec698ff7617b28ddaa48415e2ff434a06f66 /test/evp_extra_test.c
parentCORE: Register all legacy "names" when generating the initial namemap (diff)
downloadopenssl-a0fff549e6635000a545ac7d1e7a8102c1e614f1.tar.xz
openssl-a0fff549e6635000a545ac7d1e7a8102c1e614f1.zip
TEST: Use OSSL_MAX_NAME_SIZE instead of arbitrary number of mdname
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14498)
Diffstat (limited to 'test/evp_extra_test.c')
-rw-r--r--test/evp_extra_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c
index 232b849e11..a9eec323a0 100644
--- a/test/evp_extra_test.c
+++ b/test/evp_extra_test.c
@@ -1375,7 +1375,7 @@ static int test_EVP_SM2(void)
OSSL_PARAM sparams[2] = {OSSL_PARAM_END, OSSL_PARAM_END};
OSSL_PARAM gparams[2] = {OSSL_PARAM_END, OSSL_PARAM_END};
int i;
- char mdname[20];
+ char mdname[OSSL_MAX_NAME_SIZE];
if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx,
"SM2", testpropq)))