Unverified Commit ec519f22 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa Committed by GitHub

Merge pull request #1270 from baitisj/master

Fix for compilation against modern LibreSSL
parents e8b213e3 2c157059
......@@ -364,11 +364,11 @@ int tls_session_new_cb(SSL *ssl, SSL_SESSION *session) {
namespace {
SSL_SESSION *tls_session_get_cb(SSL *ssl,
#if OPENSSL_1_1_API
#if OPENSSL_1_1_API || LIBRESSL_2_7_API
const unsigned char *id,
#else // !OPENSSL_1_1_API
#else // !(OPENSSL_1_1_API || LIBRESSL_2_7_API)
unsigned char *id,
#endif // !OPENSSL_1_1_API
#endif // !(OPENSSL_1_1_API || LIBRESSL_2_7_API)
int idlen, int *copy) {
auto conn = static_cast<Connection *>(SSL_get_app_data(ssl));
auto handler = static_cast<ClientHandler *>(conn->data);
......
Markdown is supported
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