Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_protection.c @ 8321:81bb3a690c10 quic
QUIC: removed support prior to draft-29.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 18 Feb 2021 19:21:09 +0300 |
parents | d4e02b3b734f |
children | 44b4c6180106 |
comparison
equal
deleted
inserted
replaced
8320:98bacfc65c61 | 8321:81bb3a690c10 |
---|---|
153 | 153 |
154 static const uint8_t salt[20] = | 154 static const uint8_t salt[20] = |
155 #if (NGX_QUIC_DRAFT_VERSION >= 33) | 155 #if (NGX_QUIC_DRAFT_VERSION >= 33) |
156 "\x38\x76\x2c\xf7\xf5\x59\x34\xb3\x4d\x17" | 156 "\x38\x76\x2c\xf7\xf5\x59\x34\xb3\x4d\x17" |
157 "\x9a\xe6\xa4\xc8\x0c\xad\xcc\xbb\x7f\x0a"; | 157 "\x9a\xe6\xa4\xc8\x0c\xad\xcc\xbb\x7f\x0a"; |
158 #elif (NGX_QUIC_DRAFT_VERSION >= 29) | 158 #else |
159 "\xaf\xbf\xec\x28\x99\x93\xd2\x4c\x9e\x97" | 159 "\xaf\xbf\xec\x28\x99\x93\xd2\x4c\x9e\x97" |
160 "\x86\xf1\x9c\x61\x11\xe0\x43\x90\xa8\x99"; | 160 "\x86\xf1\x9c\x61\x11\xe0\x43\x90\xa8\x99"; |
161 #else | |
162 "\xc3\xee\xf7\x12\xc7\x2e\xbb\x5a\x11\xa7" | |
163 "\xd2\x43\x2b\xb4\x63\x65\xbe\xf9\xf5\x02"; | |
164 #endif | 161 #endif |
165 | 162 |
166 client = &keys->secrets[ssl_encryption_initial].client; | 163 client = &keys->secrets[ssl_encryption_initial].client; |
167 server = &keys->secrets[ssl_encryption_initial].server; | 164 server = &keys->secrets[ssl_encryption_initial].server; |
168 | 165 |
892 | 889 |
893 /* 5.8. Retry Packet Integrity */ | 890 /* 5.8. Retry Packet Integrity */ |
894 static u_char key[16] = | 891 static u_char key[16] = |
895 #if (NGX_QUIC_DRAFT_VERSION >= 33) | 892 #if (NGX_QUIC_DRAFT_VERSION >= 33) |
896 "\xbe\x0c\x69\x0b\x9f\x66\x57\x5a\x1d\x76\x6b\x54\xe3\x68\xc8\x4e"; | 893 "\xbe\x0c\x69\x0b\x9f\x66\x57\x5a\x1d\x76\x6b\x54\xe3\x68\xc8\x4e"; |
897 #elif (NGX_QUIC_DRAFT_VERSION >= 29) | 894 #else |
898 "\xcc\xce\x18\x7e\xd0\x9a\x09\xd0\x57\x28\x15\x5a\x6c\xb9\x6b\xe1"; | 895 "\xcc\xce\x18\x7e\xd0\x9a\x09\xd0\x57\x28\x15\x5a\x6c\xb9\x6b\xe1"; |
899 #else | |
900 "\x4d\x32\xec\xdb\x2a\x21\x33\xc8\x41\xe4\x04\x3d\xf2\x7d\x44\x30"; | |
901 #endif | 896 #endif |
902 static u_char nonce[12] = | 897 static u_char nonce[12] = |
903 #if (NGX_QUIC_DRAFT_VERSION >= 33) | 898 #if (NGX_QUIC_DRAFT_VERSION >= 33) |
904 "\x46\x15\x99\xd3\x5d\x63\x2b\xf2\x23\x98\x25\xbb"; | 899 "\x46\x15\x99\xd3\x5d\x63\x2b\xf2\x23\x98\x25\xbb"; |
905 #elif (NGX_QUIC_DRAFT_VERSION >= 29) | 900 #else |
906 "\xe5\x49\x30\xf9\x7f\x21\x36\xf0\x53\x0a\x8c\x1c"; | 901 "\xe5\x49\x30\xf9\x7f\x21\x36\xf0\x53\x0a\x8c\x1c"; |
907 #else | |
908 "\x4d\x16\x11\xd0\x55\x13\xa5\x52\xc5\x87\xd5\x75"; | |
909 #endif | 902 #endif |
910 static ngx_str_t in = ngx_string(""); | 903 static ngx_str_t in = ngx_string(""); |
911 | 904 |
912 ad.data = res->data; | 905 ad.data = res->data; |
913 ad.len = ngx_quic_create_retry_itag(pkt, ad.data, &start); | 906 ad.len = ngx_quic_create_retry_itag(pkt, ad.data, &start); |