From c26bcdd199fe8c441772bc972ffbb219175d9fcd Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 5 May 2018 20:00:40 +0900 Subject: [PATCH] Enable RSA_LoadDer with HAVE_FAST_RSA --- src/ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index bb4d5bd56..8b2ca5f3e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -27525,13 +27525,14 @@ int wolfSSL_i2d_RSAPublicKey(WOLFSSL_RSA *rsa, const unsigned char **pp) *pp = der; return ret; } +#endif /* #if !defined(HAVE_FAST_RSA) */ /* return WOLFSSL_SUCCESS if success, WOLFSSL_FATAL_ERROR if error */ int wolfSSL_RSA_LoadDer(WOLFSSL_RSA* rsa, const unsigned char* derBuf, int derSz) { return wolfSSL_RSA_LoadDer_ex(rsa, derBuf, derSz, WOLFSSL_RSA_LOAD_PRIVATE); } -#endif /* #if !defined(HAVE_FAST_RSA) */ + int wolfSSL_RSA_LoadDer_ex(WOLFSSL_RSA* rsa, const unsigned char* derBuf, int derSz, int opt)