nghttpx: Fix compile error with OpenSSL 1.0.2

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-06 21:14:04 +09:00
parent f93a2b71a1
commit 90746cdd0e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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