Commit 877e58d7 authored by danfe's avatar danfe
Browse files

Unbreak the build on FreeBSD 11 which still has old OpenSSL in the base.

Pointy hat to:	danfe
parent b5ab29b2
--- src/ssl/support.cc.orig 2018-07-15 20:46:55 UTC --- src/ssl/support.cc.orig 2018-07-15 20:46:55 UTC
+++ src/ssl/support.cc +++ src/ssl/support.cc
@@ -2159,7 +2159,7 @@ remove_session_cb(SSL_CTX *, SSL_SESSION *sessionID) @@ -2159,7 +2159,11 @@ remove_session_cb(SSL_CTX *, SSL_SESSION *sessionID)
} }
static SSL_SESSION * static SSL_SESSION *
-get_session_cb(SSL *, unsigned char *sessionID, int len, int *copy) -get_session_cb(SSL *, unsigned char *sessionID, int len, int *copy)
+get_session_cb(SSL *, const unsigned char *sessionID, int len, int *copy) +get_session_cb(SSL *,
+#ifdef LIBRESSL_VERSION_NUMBER
+ const
+#endif
+ unsigned char *sessionID, int len, int *copy)
{ {
if (!SslSessionCache) if (!SslSessionCache)
return NULL; return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment