diff options
author | orbea <orbea@riseup.net> | 2024-11-12 14:32:51 -0800 |
---|---|---|
committer | orbea <orbea@riseup.net> | 2024-11-12 14:32:51 -0800 |
commit | a35c3c315b26b957605f57737874c8a372edade3 (patch) | |
tree | f9301c8d8f05034068506739152f96ab52cde612 | |
parent | net-misc/stunnel fix patch (diff) | |
download | libressl-a35c3c315b26b957605f57737874c8a372edade3.tar.gz libressl-a35c3c315b26b957605f57737874c8a372edade3.tar.bz2 libressl-a35c3c315b26b957605f57737874c8a372edade3.zip |
net-misc/stunnel: fix patch again...
Signed-off-by: orbea <orbea@riseup.net>
-rw-r--r-- | net-misc/stunnel/files/stunnel-5.71-libressl.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net-misc/stunnel/files/stunnel-5.71-libressl.patch b/net-misc/stunnel/files/stunnel-5.71-libressl.patch index 25ef50c..a7fe95b 100644 --- a/net-misc/stunnel/files/stunnel-5.71-libressl.patch +++ b/net-misc/stunnel/files/stunnel-5.71-libressl.patch @@ -105,6 +105,16 @@ Rebased from an OpenBSD patch. typedef struct { void *session_authenticated; +@@ -1621,7 +1621,7 @@ NOEXPORT void info_callback(const SSL *ssl, int where, int ret) { + CLI *c; + SSL_CTX *ctx; + const char *state_string; +-#if OPENSSL_VERSION_NUMBER>=0x10100000L ++#if OPENSSL_VERSION_NUMBER>=0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) + OSSL_HANDSHAKE_STATE state=SSL_get_state(ssl); + #else + int state=SSL_get_state((SSL *)ssl); +@@ -1622,8 +1622,11 @@ NOEXPORT void info_callback(const SSL *ssl, int where, int ret) { @@ -1622,7 +1622,10 @@ NOEXPORT void info_callback(const SSL *ssl, int where, int ret) { if(state==TLS_ST_SR_CLNT_HELLO) { #else |