Fix for compilation against modern LibreSSL

This commit is contained in:
Jeff 'Raid' Baitis 2018-12-02 13:30:42 -08:00
parent 302abf1b46
commit 2c1570595e
1 changed files with 3 additions and 3 deletions

View File

@ -364,11 +364,11 @@ int tls_session_new_cb(SSL *ssl, SSL_SESSION *session) {
namespace { namespace {
SSL_SESSION *tls_session_get_cb(SSL *ssl, 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, const unsigned char *id,
#else // !OPENSSL_1_1_API #else // !(OPENSSL_1_1_API || LIBRESSL_2_7_API)
unsigned char *id, unsigned char *id,
#endif // !OPENSSL_1_1_API #endif // !(OPENSSL_1_1_API || LIBRESSL_2_7_API)
int idlen, int *copy) { int idlen, int *copy) {
auto conn = static_cast<Connection *>(SSL_get_app_data(ssl)); auto conn = static_cast<Connection *>(SSL_get_app_data(ssl));
auto handler = static_cast<ClientHandler *>(conn->data); auto handler = static_cast<ClientHandler *>(conn->data);