mirror of
https://github.com/nginx/nginx.git
synced 2025-01-06 22:23:00 -06:00
QUIC: using NGX_QUIC_ERR_CRYPTO macro in ALPN checks.
Patch by Jiuzhou Cui.
This commit is contained in:
parent
40af97fdec
commit
1ccba18f00
@ -190,7 +190,7 @@ ngx_quic_add_handshake_data(ngx_ssl_conn_t *ssl_conn,
|
|||||||
SSL_get0_alpn_selected(ssl_conn, &alpn_data, &alpn_len);
|
SSL_get0_alpn_selected(ssl_conn, &alpn_data, &alpn_len);
|
||||||
|
|
||||||
if (alpn_len == 0) {
|
if (alpn_len == 0) {
|
||||||
qc->error = 0x100 + SSL_AD_NO_APPLICATION_PROTOCOL;
|
qc->error = NGX_QUIC_ERR_CRYPTO(SSL_AD_NO_APPLICATION_PROTOCOL);
|
||||||
qc->error_reason = "unsupported protocol in ALPN extension";
|
qc->error_reason = "unsupported protocol in ALPN extension";
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user