summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_output.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-11-30 14:30:59 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-11-30 14:30:59 +0300
commita981efe6e803acc17af428ea16385df1e8e05c00 (patch)
tree857571d41ba0642002de1bedbe243d3d21760064 /src/event/quic/ngx_event_quic_output.c
parentac851d7f69362ffeff4fe1f581434ab3ac9f9c59 (diff)
downloadnginx-a981efe6e803acc17af428ea16385df1e8e05c00.tar.gz
nginx-a981efe6e803acc17af428ea16385df1e8e05c00.tar.bz2
QUIC: ngx_quic_send_alert() callback moved to its place.
Diffstat (limited to 'src/event/quic/ngx_event_quic_output.c')
-rw-r--r--src/event/quic/ngx_event_quic_output.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c
index 178f0b28a..4d97626a9 100644
--- a/src/event/quic/ngx_event_quic_output.c
+++ b/src/event/quic/ngx_event_quic_output.c
@@ -837,32 +837,6 @@ ngx_quic_negotiate_version(ngx_connection_t *c, ngx_quic_header_t *inpkt)
}
-int
-ngx_quic_send_alert(ngx_ssl_conn_t *ssl_conn, enum ssl_encryption_level_t level,
- uint8_t alert)
-{
- ngx_connection_t *c;
- ngx_quic_connection_t *qc;
-
- c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
-
- ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
- "quic ngx_quic_send_alert() level:%s alert:%d",
- ngx_quic_level_name(level), (int) alert);
-
- /* already closed on regular shutdown */
-
- qc = ngx_quic_get_connection(c);
- if (qc == NULL) {
- return 1;
- }
-
- qc->error = NGX_QUIC_ERR_CRYPTO(alert);
-
- return 1;
-}
-
-
ngx_int_t
ngx_quic_send_stateless_reset(ngx_connection_t *c, ngx_quic_conf_t *conf,
ngx_quic_header_t *pkt)