annotate src/event/ngx_event_quic.h @ 7636:53a5cdbe500c quic

QUIC add_handshake_data callback, varint routines.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 28 Feb 2020 13:09:51 +0300
parents bd006bd520a9
children 4daf03d2bd0a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7633
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
1
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
2 /*
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
3 *
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
4 */
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
5
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
6
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
7 #ifndef _NGX_EVENT_QUIC_H_INCLUDED_
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
8 #define _NGX_EVENT_QUIC_H_INCLUDED_
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
9
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
10
7636
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
11 #include <ngx_event_openssl.h>
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
12
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
13
7633
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
14 struct ngx_quic_connection_s {
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
15 ngx_str_t scid;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
16 ngx_str_t dcid;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
17 ngx_str_t token;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
18
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
19 ngx_str_t client_in;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
20 ngx_str_t client_in_key;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
21 ngx_str_t client_in_iv;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
22 ngx_str_t client_in_hp;
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
23
7634
b507592c15a7 Server Initial Keys.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7633
diff changeset
24 ngx_str_t server_in;
b507592c15a7 Server Initial Keys.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7633
diff changeset
25 ngx_str_t server_in_key;
b507592c15a7 Server Initial Keys.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7633
diff changeset
26 ngx_str_t server_in_iv;
b507592c15a7 Server Initial Keys.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7633
diff changeset
27 ngx_str_t server_in_hp;
b507592c15a7 Server Initial Keys.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7633
diff changeset
28
7635
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
29 ngx_str_t client_hs;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
30 ngx_str_t client_hs_key;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
31 ngx_str_t client_hs_iv;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
32 ngx_str_t client_hs_hp;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
33
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
34 ngx_str_t server_hs;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
35 ngx_str_t server_hs_key;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
36 ngx_str_t server_hs_iv;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
37 ngx_str_t server_hs_hp;
7633
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
38
7635
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
39 ngx_str_t client_ad;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
40 ngx_str_t client_ad_key;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
41 ngx_str_t client_ad_iv;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
42 ngx_str_t client_ad_hp;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
43
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
44 ngx_str_t server_ad;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
45 ngx_str_t server_ad_key;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
46 ngx_str_t server_ad_iv;
bd006bd520a9 QUIC set_encryption_secrets callback.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7634
diff changeset
47 ngx_str_t server_ad_hp;
7633
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
48 };
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
49
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
50
7636
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
51 uint64_t ngx_quic_parse_pn(u_char **pos, ngx_int_t len, u_char *mask);
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
52 uint64_t ngx_quic_parse_int(u_char **pos);
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
53 void ngx_quic_build_int(u_char **pos, uint64_t value);
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
54
53a5cdbe500c QUIC add_handshake_data callback, varint routines.
Sergey Kandaurov <pluknet@nginx.com>
parents: 7635
diff changeset
55
7633
5d91389e0fd3 Initial QUIC support in http.
Sergey Kandaurov <pluknet@nginx.com>
parents:
diff changeset
56 #endif /* _NGX_EVENT_QUIC_H_INCLUDED_ */