expose mp_toradix() when WOLFSSL_PUBLIC_MP is defined

This commit is contained in:
Chris Conlon
2018-05-03 13:41:23 -06:00
parent 74618d0e3c
commit bb7bcfd877
2 changed files with 6 additions and 3 deletions

View File

@@ -4813,7 +4813,8 @@ int mp_read_radix (mp_int * a, const char *str, int radix)
#endif /* !defined(NO_DSA) || defined(HAVE_ECC) */
#if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) || \
defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL)
defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) || \
defined(WOLFSSL_PUBLIC_MP)
/* returns size of ASCII representation */
int mp_radix_size (mp_int *a, int radix, int *size)