summaryrefslogtreecommitdiffstats
path: root/crypto/sm2
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-08-25 02:12:17 +0200
committerPauli <pauli@openssl.org>2021-08-25 02:12:17 +0200
commit2576b70d43e1fcc8073df60ccccf3e22a13b67d3 (patch)
tree562af5c85410ad67cb70559f9b439c64ca2f2c96 /crypto/sm2
parentrsa: Try legacy encoding functions for pubkey (diff)
downloadopenssl-2576b70d43e1fcc8073df60ccccf3e22a13b67d3.tar.xz
openssl-2576b70d43e1fcc8073df60ccccf3e22a13b67d3.zip
sm2: fix error raise to not fail make update
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16411)
Diffstat (limited to 'crypto/sm2')
-rw-r--r--crypto/sm2/sm2_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c
index e26b48390a..5318c6199f 100644
--- a/crypto/sm2/sm2_crypt.c
+++ b/crypto/sm2/sm2_crypt.c
@@ -313,7 +313,7 @@ int ossl_sm2_decrypt(const EC_KEY *key,
C3 = sm2_ctext->C3->data;
msg_len = sm2_ctext->C2->length;
if (*ptext_len < (size_t)msg_len) {
- SM2err(SM2_F_SM2_DECRYPT, SM2_R_BUFFER_TOO_SMALL);
+ ERR_raise(ERR_LIB_SM2, SM2_R_BUFFER_TOO_SMALL);
goto done;
}