Mercurial > hg > nginx
comparison src/event/ngx_event_quic.c @ 8356:42198f77ac85 quic
Removed support of drafts older than currently latest 27.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 23 Apr 2020 11:50:20 +0300 |
parents | ad3a6f069498 |
children | 2f900ae486bc |
comparison
equal
deleted
inserted
replaced
8355:ad3a6f069498 | 8356:42198f77ac85 |
---|---|
1901 "quic ssl cipher: %s", SSL_get_cipher(ssl_conn)); | 1901 "quic ssl cipher: %s", SSL_get_cipher(ssl_conn)); |
1902 | 1902 |
1903 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, | 1903 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, |
1904 "handshake completed successfully"); | 1904 "handshake completed successfully"); |
1905 | 1905 |
1906 #if (NGX_QUIC_DRAFT_VERSION >= 27) | |
1907 { | |
1908 ngx_quic_frame_t *frame; | |
1909 | |
1910 frame = ngx_quic_alloc_frame(c, 0); | 1906 frame = ngx_quic_alloc_frame(c, 0); |
1911 if (frame == NULL) { | 1907 if (frame == NULL) { |
1912 return NGX_ERROR; | 1908 return NGX_ERROR; |
1913 } | 1909 } |
1914 | 1910 |
1915 /* 12.4 Frames and frame types, figure 8 */ | 1911 /* 12.4 Frames and frame types, figure 8 */ |
1916 frame->level = ssl_encryption_application; | 1912 frame->level = ssl_encryption_application; |
1917 frame->type = NGX_QUIC_FT_HANDSHAKE_DONE; | 1913 frame->type = NGX_QUIC_FT_HANDSHAKE_DONE; |
1918 ngx_sprintf(frame->info, "HANDSHAKE DONE on handshake completed"); | 1914 ngx_sprintf(frame->info, "HANDSHAKE DONE on handshake completed"); |
1919 ngx_quic_queue_frame(c->quic, frame); | 1915 ngx_quic_queue_frame(c->quic, frame); |
1920 } | |
1921 #endif | |
1922 | 1916 |
1923 /* | 1917 /* |
1924 * Generating next keys before a key update is received. | 1918 * Generating next keys before a key update is received. |
1925 * See quic-tls 9.4 Header Protection Timing Side-Channels. | 1919 * See quic-tls 9.4 Header Protection Timing Side-Channels. |
1926 */ | 1920 */ |