Commit 75bfbc94 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Require TLSv1.2 or TLSv1.1 for NPN as well

parent 6c66bd5c
......@@ -385,6 +385,12 @@ int ClientHandler::validate_next_proto()
if(next_proto_len == NGHTTP2_PROTO_VERSION_ID_LEN &&
memcmp(NGHTTP2_PROTO_VERSION_ID, next_proto,
NGHTTP2_PROTO_VERSION_ID_LEN) == 0) {
// For NPN, we must check security requirement here.
if(!ssl::check_http2_requirement(ssl_)) {
return -1;
}
set_bev_cb(upstream_http2_connhd_readcb, upstream_writecb,
upstream_eventcb);
upstream_ = util::make_unique<Http2Upstream>(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment