diff options
Diffstat (limited to 'net-misc/stunnel/files/stunnel-5.65-libressl.patch')
-rw-r--r-- | net-misc/stunnel/files/stunnel-5.65-libressl.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-misc/stunnel/files/stunnel-5.65-libressl.patch b/net-misc/stunnel/files/stunnel-5.65-libressl.patch index ac878f6..f00bc1c 100644 --- a/net-misc/stunnel/files/stunnel-5.65-libressl.patch +++ b/net-misc/stunnel/files/stunnel-5.65-libressl.patch @@ -102,6 +102,18 @@ index a2202b7..a39ee4c 100644 OSSL_HANDSHAKE_STATE state=SSL_get_state(ssl); #else int state=SSL_get_state((SSL *)ssl); +@@ -1575,7 +1575,10 @@ NOEXPORT void info_callback(const SSL *ssl, int where, int ret) { + if(state==TLS_ST_SR_CLNT_HELLO) { + #else + if(state==SSL3_ST_SR_CLNT_HELLO_A +- || state==SSL23_ST_SR_CLNT_HELLO_A) { ++#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x4000000fL ++ || state==SSL23_ST_SR_CLNT_HELLO_A ++#endif ++ ) { + #endif + /* client hello received after initial handshake, + * this means renegotiation -> mark it */ diff --git a/src/options.c b/src/options.c index 9ac9c7e..dfcf8b2 100644 --- a/src/options.c |