remove redundent check on mp_read_radix available

This commit is contained in:
Jacob Barthelmeh
2023-03-07 16:08:37 -07:00
parent eb0bf7cd03
commit 07a1725635

View File

@@ -575,18 +575,6 @@ char* wolfSSL_BN_bn2hex(const WOLFSSL_BIGNUM *bn)
*/
static int wolfssl_bn_radix2bn(WOLFSSL_BIGNUM** bn, const char* str, int radix)
{
#if defined(USE_FAST_MATH) && (!defined(OPENSSL_EXTRA) && defined(NO_DSA) && \
!defined(HAVE_ECC))
/* in this build case mp_read_radix is not available */
WOLFSSL_ENTER("wolfSSL_BN_bn2dec");
WOLFSSL_MSG("BN mp_read_radix not available");
(void)bn;
(void)str;
(void)radix;
return 0;
#else
int ret = 1;
WOLFSSL_BIGNUM* a = NULL;
@@ -620,7 +608,6 @@ static int wolfssl_bn_radix2bn(WOLFSSL_BIGNUM** bn, const char* str, int radix)
*bn = NULL;
}
return ret;
#endif
}
/* Decode hex string into a big number.