forked from wolfSSL/wolfssl
Change return value to 0 for null key when HAVE_USER_RSA is defined
This commit is contained in:
@ -15058,7 +15058,7 @@ static int test_wc_SignatureGetSize_rsa(void)
|
|||||||
#ifndef HAVE_USER_RSA
|
#ifndef HAVE_USER_RSA
|
||||||
if (ret == BAD_FUNC_ARG) {
|
if (ret == BAD_FUNC_ARG) {
|
||||||
#else
|
#else
|
||||||
if (ret == USER_CRYPTO_ERROR) {
|
if (ret == 0) {
|
||||||
#endif
|
#endif
|
||||||
key_len = (word32)0;
|
key_len = (word32)0;
|
||||||
ret = wc_SignatureGetSize(sig_type, &rsa_key, key_len);
|
ret = wc_SignatureGetSize(sig_type, &rsa_key, key_len);
|
||||||
|
Reference in New Issue
Block a user