aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-04-05 11:31:03 +0300
committerVladimir Homutov <vl@nginx.com>2021-04-05 11:31:03 +0300
commita6c52268ebeca4e52ac44cb1b702e9a491e4a4fe (patch)
treec9c5f81a8ab94cc66b2afa965238d65b3569dd69 /src
parent2fd50ca589d37b4dd66006254d99918f44617cf0 (diff)
downloadnginx-a6c52268ebeca4e52ac44cb1b702e9a491e4a4fe.tar.gz
nginx-a6c52268ebeca4e52ac44cb1b702e9a491e4a4fe.zip
QUIC: added error codes and messages from latest drafts.
The AEAD_LIMIT_REACHED was addeded in draft-31. The NO_VIABLE_PATH was added in draft-33.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_transport.c2
-rw-r--r--src/event/quic/ngx_event_quic_transport.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c
index 3fcc9fec9..27dbf92af 100644
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -157,6 +157,8 @@ static char *ngx_quic_errors[] = {
"APPLICATION_ERROR",
"CRYPTO_BUFFER_EXCEEDED",
"KEY_UPDATE_ERROR",
+ "AEAD_LIMIT_REACHED",
+ "NO_VIABLE_PATH",
};
diff --git a/src/event/quic/ngx_event_quic_transport.h b/src/event/quic/ngx_event_quic_transport.h
index 163ef3779..415bbc75c 100644
--- a/src/event/quic/ngx_event_quic_transport.h
+++ b/src/event/quic/ngx_event_quic_transport.h
@@ -98,8 +98,10 @@
#define NGX_QUIC_ERR_APPLICATION_ERROR 0x0C
#define NGX_QUIC_ERR_CRYPTO_BUFFER_EXCEEDED 0x0D
#define NGX_QUIC_ERR_KEY_UPDATE_ERROR 0x0E
+#define NGX_QUIC_ERR_AEAD_LIMIT_REACHED 0x0F
+#define NGX_QUIC_ERR_NO_VIABLE_PATH 0x10
-#define NGX_QUIC_ERR_LAST 0x0F
+#define NGX_QUIC_ERR_LAST 0x11
#define NGX_QUIC_ERR_CRYPTO_ERROR 0x100
#define NGX_QUIC_ERR_CRYPTO(e) (NGX_QUIC_ERR_CRYPTO_ERROR + (e))