Skip to content

Commit

Permalink
h2load: Return SSL_TLSEXT_ERR_NOACK if there is protocol list overlap…
Browse files Browse the repository at this point in the history
… in NPN
  • Loading branch information
tatsuhiro-t committed Nov 5, 2015
1 parent 0dc7fee commit cb73fa1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/h2load.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1171,12 +1171,11 @@ int client_select_next_proto_cb(SSL *ssl, unsigned char **out,
if (util::select_protocol(const_cast<const unsigned char **>(out), outlen, in,
inlen, config.npn_list)) {
return SSL_TLSEXT_ERR_OK;
} else if (inlen == 0) {
std::cout
<< "Server does not support NPN. Fallback behaviour may be activated."
<< std::endl;
}
return SSL_TLSEXT_ERR_OK;

// OpenSSL will terminate handshake with fatal alert if we return
// NOACK. So there is no way to fallback.
return SSL_TLSEXT_ERR_NOACK;
}
} // namespace

Expand Down

0 comments on commit cb73fa1

Please sign in to comment.