From 4cfe5a1bc1323d87293c6bfe4309c41aa4294dea Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 18 Nov 2020 11:30:53 -0800 Subject: [PATCH] Fix for missing `wolfSSL_PEM_write_bio_PrivateKey` with WebRTC. If keygen or certgen is not specified this was incorrectly being excluded with `opensslextra` or `opensslall`. --- src/ssl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index e4aeb2b95..69f296a66 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -31875,10 +31875,8 @@ static int wolfSSL_RSA_To_Der(WOLFSSL_RSA* rsa, byte** outBuf, int publicKey) } #endif -#if defined(WOLFSSL_KEY_GEN) || defined(WOLFSSL_CERT_GEN) #ifndef NO_BIO #if (defined(OPENSSL_EXTRA) || defined(OPENSSL_ALL)) && !defined(NO_RSA) - /* Takes a WOLFSSL_RSA key and writes it out to a WOLFSSL_BIO * * bio the WOLFSSL_BIO to write to @@ -32162,7 +32160,6 @@ int wolfSSL_PEM_write_bio_PrivateKey(WOLFSSL_BIO* bio, WOLFSSL_EVP_PKEY* key, return WOLFSSL_SUCCESS; } #endif /* !NO_BIO */ -#endif /* defined(WOLFSSL_KEY_GEN) || defined(WOLFSSL_CERT_GEN) */ #if (defined(WOLFSSL_KEY_GEN) && !defined(NO_RSA) && !defined(HAVE_USER_RSA)) && \ (defined(WOLFSSL_PEM_TO_DER) || defined(WOLFSSL_DER_TO_PEM))