diff --git a/src/ssl.c b/src/ssl.c index cb782945f..ae3248f77 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -69,6 +69,10 @@ #include +#ifndef NO_RSA + #include +#endif + #ifdef OPENSSL_EXTRA /* openssl headers begin */ #include diff --git a/wolfssl/wolfcrypt/rsa.h b/wolfssl/wolfcrypt/rsa.h index f51484f53..b8e41608a 100644 --- a/wolfssl/wolfcrypt/rsa.h +++ b/wolfssl/wolfcrypt/rsa.h @@ -278,9 +278,8 @@ WOLFSSL_API int wc_RsaPublicKeyDecode(const byte* input, word32* inOutIdx, RsaKey*, word32); WOLFSSL_API int wc_RsaPublicKeyDecodeRaw(const byte* n, word32 nSz, const byte* e, word32 eSz, RsaKey* key); -#ifdef WOLFSSL_KEY_GEN - WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen); -#endif +WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen); + #ifdef WC_RSA_BLINDING WOLFSSL_API int wc_RsaSetRNG(RsaKey* key, WC_RNG* rng);