Merge pull request #1270 from baitisj/master
Fix for compilation against modern LibreSSL
This commit is contained in:
commit
ec519f22dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue