]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
crypto/err/err_all.c: load SM2 error strings
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 30 Mar 2026 09:23:31 +0000 (11:23 +0200)
committerTomas Mraz <tomas@openssl.foundation>
Fri, 3 Apr 2026 15:32:54 +0000 (17:32 +0200)
The function ossl_err_load_SM2_strings() exists, but wasn't called
in ossl_err_load_crypto_strings().  Rescind this omission.

Fixes: 3d328a445c2a "Add SM2 signature and ECIES schemes"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Fri Apr  3 15:32:47 2026
(Merged from https://github.com/openssl/openssl/pull/30625)

(cherry picked from commit 6830f6281303b7c4ddb6957f4a90734a0ca82b8e)

crypto/err/err_all.c

index be3d91280aed75bc71690de35a9eb1442d575ed9..7761410f2d6bf0c807b866b6e9efcf1b697fc904 100644 (file)
@@ -39,6 +39,7 @@
 #include "crypto/cmperr.h"
 #include "crypto/cterr.h"
 #include "crypto/asyncerr.h"
+#include "crypto/sm2err.h"
 #include "crypto/storeerr.h"
 #include "crypto/esserr.h"
 #include "internal/propertyerr.h"
@@ -100,6 +101,9 @@ int ossl_err_load_crypto_strings(void)
 #endif
         || ossl_err_load_ESS_strings() == 0
         || ossl_err_load_ASYNC_strings() == 0
+#ifndef OPENSSL_NO_SM2
+        || ossl_err_load_SM2_strings() == 0
+#endif
         || ossl_err_load_OSSL_STORE_strings() == 0
         || ossl_err_load_PROP_strings() == 0
         || ossl_err_load_PROV_strings() == 0