diff --git a/src/shrpx_tls.cc b/src/shrpx_tls.cc index c5dd9d37..746311f0 100644 --- a/src/shrpx_tls.cc +++ b/src/shrpx_tls.cc @@ -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(SSL_get_app_data(ssl)); auto handler = static_cast(conn->data);