From 12dc346058a8cf0b92599a38284e78840d2017ea Mon Sep 17 00:00:00 2001 From: Carie Pointer Date: Fri, 25 May 2018 09:25:25 -0600 Subject: [PATCH] Change return value to 0 for null key when HAVE_USER_RSA is defined --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 0eccc4616..a9b3871a8 100644 --- a/tests/api.c +++ b/tests/api.c @@ -15058,7 +15058,7 @@ static int test_wc_SignatureGetSize_rsa(void) #ifndef HAVE_USER_RSA if (ret == BAD_FUNC_ARG) { #else - if (ret == USER_CRYPTO_ERROR) { + if (ret == 0) { #endif key_len = (word32)0; ret = wc_SignatureGetSize(sig_type, &rsa_key, key_len);