comparison src/event/quic/ngx_event_quic_ssl.c @ 9015:a2fbae359828 quic

QUIC: fixed indentation.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 16 Feb 2022 15:45:47 +0300
parents b5656025ddb5
children f2925c80401c
comparison
equal deleted inserted replaced
9014:8d11e2171697 9015:a2fbae359828
210 * here; 210 * here;
211 */ 211 */
212 212
213 #if defined(TLSEXT_TYPE_application_layer_protocol_negotiation) 213 #if defined(TLSEXT_TYPE_application_layer_protocol_negotiation)
214 214
215 SSL_get0_alpn_selected(ssl_conn, &alpn_data, &alpn_len); 215 SSL_get0_alpn_selected(ssl_conn, &alpn_data, &alpn_len);
216 216
217 if (alpn_len == 0) { 217 if (alpn_len == 0) {
218 qc->error = 0x100 + SSL_AD_NO_APPLICATION_PROTOCOL; 218 qc->error = 0x100 + SSL_AD_NO_APPLICATION_PROTOCOL;
219 qc->error_reason = "unsupported protocol in ALPN extension"; 219 qc->error_reason = "unsupported protocol in ALPN extension";
220 220
221 ngx_log_error(NGX_LOG_INFO, c->log, 0, 221 ngx_log_error(NGX_LOG_INFO, c->log, 0,
222 "quic unsupported protocol in ALPN extension"); 222 "quic unsupported protocol in ALPN extension");
223 return 0; 223 return 0;
224 } 224 }
225 225
226 #endif 226 #endif
227 227
228 SSL_get_peer_quic_transport_params(ssl_conn, &client_params, 228 SSL_get_peer_quic_transport_params(ssl_conn, &client_params,
229 &client_params_len); 229 &client_params_len);