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