[openssl] master update
Dr. Paul Dale
pauli at openssl.org
Wed Aug 25 00:47:04 UTC 2021
The branch master has been updated
via 2576b70d43e1fcc8073df60ccccf3e22a13b67d3 (commit)
from 94736c3a10ae7d109243abffb0200931fb3db5a8 (commit)
- Log -----------------------------------------------------------------
commit 2576b70d43e1fcc8073df60ccccf3e22a13b67d3
Author: Pauli <pauli at openssl.org>
Date: Wed Aug 25 10:12:17 2021 +1000
sm2: fix error raise to not fail make update
Reviewed-by: Tim Hudson <tjh at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16411)
-----------------------------------------------------------------------
Summary of changes:
crypto/sm2/sm2_crypt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the openssl-commits
mailing list