From: Tobias Brick Date: Tue, 15 Apr 2025 20:30:39 +0000 (+0000) Subject: Properly skip SM2 evp tests X-Git-Tag: openssl-3.3.4~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d88061f84413b3a064a5626b3f20e6227146212;p=thirdparty%2Fopenssl.git Properly skip SM2 evp tests Taken from commit 2a53830958b1e90231742e1d8ae0523d463560e3 as the patch overall does not apply cleanly to 3.3. Reviewed-by: Paul Yang Reviewed-by: Kurt Roeckx Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27400) --- diff --git a/test/evp_test.c b/test/evp_test.c index 56346317032..8863663295d 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -4273,6 +4273,10 @@ static int is_pkey_disabled(const char *name) #ifdef OPENSSL_NO_DSA if (HAS_CASE_PREFIX(name, "DSA")) return 1; +#endif +#ifdef OPENSSL_NO_SM2 + if (HAS_CASE_PREFIX(name, "SM2")) + return 1; #endif return 0; }