diff --git a/ctaocrypt/include/config.h b/ctaocrypt/include/config.h index 7d7b8a938..7146f116b 100644 --- a/ctaocrypt/include/config.h +++ b/ctaocrypt/include/config.h @@ -42,7 +42,7 @@ /* Define to 1 or 0, depending whether the compiler supports simple visibility declarations. */ -#define HAVE_VISIBILITY 0 +#define HAVE_VISIBILITY 1 /* Define to the sub-directory in which libtool stores uninstalled libraries. */ diff --git a/ctaocrypt/include/integer.h b/ctaocrypt/include/integer.h index c73bc4390..d35a25ea9 100644 --- a/ctaocrypt/include/integer.h +++ b/ctaocrypt/include/integer.h @@ -314,9 +314,11 @@ int mp_init_multi(mp_int* a, mp_int* b, mp_int* c, mp_int* d, mp_int* e, int mp_set_int (mp_int * a, unsigned long b); int mp_gcd (mp_int * a, mp_int * b, mp_int * c); int mp_lcm (mp_int * a, mp_int * b, mp_int * c); - int mp_sub_d (mp_int * a, mp_digit b, mp_int * c); #endif +#if defined(CYASSL_KEY_GEN) || defined(HAVE_ECC) || !defined(NO_PWDBASED) + int mp_sub_d (mp_int * a, mp_digit b, mp_int * c); +#endif #ifdef __cplusplus }