Signed-off-by: Philipp Ammann <philipp.amm...@posteo.de>
---
 openssl-dtls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openssl-dtls.c b/openssl-dtls.c
index b954e2b3..71027f97 100644
--- a/openssl-dtls.c
+++ b/openssl-dtls.c
@@ -315,7 +315,7 @@ static unsigned int psk_callback(SSL *ssl, const char 
*hint, char *identity,
 
 #endif
 
-#if OPENSSL_VERSION_NUMBER < 0x10002000L
+#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
 static const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr)
 {
     return ssl->method->get_cipher_by_char(ptr);
-- 
2.22.0


_______________________________________________
openconnect-devel mailing list
openconnect-devel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/openconnect-devel

Reply via email to