Skip to content

Instantly share code, notes, and snippets.

View AviSoomirtee's full-sized avatar

Avi AviSoomirtee

View GitHub Profile
@AviSoomirtee
AviSoomirtee / openssl.c
Last active March 23, 2019 09:12
adding post handshake authentication in wget with tls 1.3
diff --git a/src/openssl.c b/src/openssl.c
index a6fec5b..15e7510 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -295,6 +295,12 @@ ssl_init (void)
if (ssl_options)
SSL_CTX_set_options (ssl_ctx, ssl_options);
+#if ((OPENSSL_VERSION_NUMBER >= 0x10101000L) && \
+ !defined(LIBRESSL_VERSION_NUMBER) && \