]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Properly skip SM2 evp tests
authorTobias Brick <tobiasb@microsoft.com>
Tue, 15 Apr 2025 20:30:39 +0000 (20:30 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 17 Apr 2025 13:44:31 +0000 (15:44 +0200)
Taken from commit 2a53830958b1e90231742e1d8ae0523d463560e3
as the patch overall does not apply cleanly to 3.3.

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27400)

test/evp_test.c

index 5634631703240fc9731f92a0f8047cf28ddae9d1..8863663295d00e8731651ffded6176b1549978c0 100644 (file)
@@ -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;
 }