]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/evp_extra_test.c
Fix test/evp_extra_test.c
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Sep 2020 08:52:20 +0000 (10:52 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 8 Sep 2020 04:26:19 +0000 (06:26 +0200)
commit08497fc64f688a91d421de74a8498aff33573485
treebb21cb1ed600051692b933fa70fe066a97dd33ff
parent20d56d6d62d98c3b2649afd2d20e0c2cc39afce1
Fix test/evp_extra_test.c

Because EVP_PKEY_CTX_new_from_name() could return a non-NULL context
with no value in it, the lack of legacy implementation when OpenSSL
was configured with 'no-ec' went through undetected.  This adds the
necessary guards to skip a test of SM2 in that case.

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
(Merged from https://github.com/openssl/openssl/pull/12785)
test/evp_extra_test.c