Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 8189:bb3f4f669417 quic
QUIC: passing ssl_conn to SSL_get0_alpn_selected() directly.
No functional changes.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 29 Oct 2020 21:50:19 +0000 |
parents | 69dc750cf66f |
children | d10118e38943 |
comparison
equal
deleted
inserted
replaced
8188:71b7453fb11f | 8189:bb3f4f669417 |
---|---|
757 #if defined(TLSEXT_TYPE_application_layer_protocol_negotiation) | 757 #if defined(TLSEXT_TYPE_application_layer_protocol_negotiation) |
758 if (qc->conf->require_alpn) { | 758 if (qc->conf->require_alpn) { |
759 unsigned int len; | 759 unsigned int len; |
760 const unsigned char *data; | 760 const unsigned char *data; |
761 | 761 |
762 SSL_get0_alpn_selected(c->ssl->connection, &data, &len); | 762 SSL_get0_alpn_selected(ssl_conn, &data, &len); |
763 | 763 |
764 if (len == 0) { | 764 if (len == 0) { |
765 qc->error = 0x100 + SSL_AD_NO_APPLICATION_PROTOCOL; | 765 qc->error = 0x100 + SSL_AD_NO_APPLICATION_PROTOCOL; |
766 qc->error_reason = "unsupported protocol in ALPN extension"; | 766 qc->error_reason = "unsupported protocol in ALPN extension"; |
767 | 767 |