Skip to contentSkip to conversation

Remove ENABLE_CRYPTO_OPENSSL ifdef inside ENABLE_CRYPTO_OPENSSL ifdef

PATCH In review Arne Schwabe 2 participants 2 messages Dec 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove ENABLE_CRYPTO_OPENSSL ifdef inside ENABLE_CRYPTO_OPENSSL ifdef

This ifdef is redundant.

---
 src/openvpn/ssl_openssl.c | 2 --
 1 file changed, 2 deletions(-)
src/openvpn/ssl_openssl.c +0 -2
index ab9a8f347..724664bb9 100644
@@ -1964,13 +1964,11 @@ key_state_write_plaintext(struct key_state_ssl *ks_ssl, struct buffer *buf)
     int ret = 0;
     perf_push(PERF_BIO_WRITE_PLAINTEXT);
 
-#ifdef ENABLE_CRYPTO_OPENSSL
     ASSERT(NULL != ks_ssl);
 
     ret = bio_write(ks_ssl->ssl_bio, BPTR(buf), BLEN(buf),
                     "tls_write_plaintext");
     bio_write_post(ret, buf);
-#endif /* ENABLE_CRYPTO_OPENSSL */
 
     perf_pop();
     return ret;
Signature · 1 line
2.33.0
Acked-by on v1 1/1
#1 lore raw

"Now that was an easy one" :-) (and going back and finding out why it ended being there in the first place was an interesting journey via 9b33b5a4b and bf707bd2b)

Your patch has been applied to the master branch.

commit 2aef01df6ca54ca6e04923aa988b22c5df9f48f8

Author: Arne Schwabe
Date:   Tue Dec 7 17:50:35 2021 +0100
     Remove ENABLE_CRYPTO_OPENSSL ifdef inside ENABLE_CRYPTO_OPENSSL ifdef

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg23326.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering