From 90746cdd0e9e5e2064c7285d8c7689c13363bf09 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 6 Feb 2015 21:14:04 +0900 Subject: [PATCH] nghttpx: Fix compile error with OpenSSL 1.0.2 --- src/shrpx_client_handler.cc | 2 +- src/shrpx_http2_session.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_client_handler.cc b/src/shrpx_client_handler.cc index 8f4fad46..a70d4669 100644 --- a/src/shrpx_client_handler.cc +++ b/src/shrpx_client_handler.cc @@ -524,7 +524,7 @@ int ClientHandler::validate_next_proto() { break; } #if OPENSSL_VERSION_NUMBER >= 0x10002000L - SSL_get0_alpn_selected(ssl_, &next_proto, &next_proto_len); + SSL_get0_alpn_selected(conn_.tls.ssl, &next_proto, &next_proto_len); #else // OPENSSL_VERSION_NUMBER < 0x10002000L break; #endif // OPENSSL_VERSION_NUMBER < 0x10002000L diff --git a/src/shrpx_http2_session.cc b/src/shrpx_http2_session.cc index 7456819b..ae50683e 100644 --- a/src/shrpx_http2_session.cc +++ b/src/shrpx_http2_session.cc @@ -1157,7 +1157,7 @@ int Http2Session::on_connect() { break; } #if OPENSSL_VERSION_NUMBER >= 0x10002000L - SSL_get0_alpn_selected(ssl_, &next_proto, &next_proto_len); + SSL_get0_alpn_selected(conn_.tls.ssl, &next_proto, &next_proto_len); #else // OPENSSL_VERSION_NUMBER < 0x10002000L break; #endif // OPENSSL_VERSION_NUMBER < 0x10002000L