Home
last modified time | relevance | path

Searched refs:ngtcp2_cid (Results 1 – 24 of 24) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_quic.h41 template <> struct hash<ngtcp2_cid> {
42 std::size_t operator()(const ngtcp2_cid &cid) const noexcept {
58 bool operator==(const ngtcp2_cid &lhs, const ngtcp2_cid &rhs);
88 int generate_quic_retry_connection_id(ngtcp2_cid &cid, size_t cidlen,
92 int generate_quic_connection_id(ngtcp2_cid &cid, size_t cidlen,
102 int generate_quic_hashed_connection_id(ngtcp2_cid &dest,
105 const ngtcp2_cid &cid);
107 int generate_quic_stateless_reset_token(uint8_t *token, const ngtcp2_cid &cid,
113 const ngtcp2_cid &retry_scid, const ngtcp2_cid &odcid,
116 int verify_retry_token(ngtcp2_cid &odcid, const uint8_t *token, size_t tokenlen,
[all …]
Dshrpx_quic_connection_handler.h53 CloseWait(Worker *worker, std::vector<ngtcp2_cid> scids,
63 std::vector<ngtcp2_cid> scids;
114 const ngtcp2_cid &ini_dcid,
115 const ngtcp2_cid &ini_scid,
122 const ngtcp2_cid *odcid, const uint8_t *token,
124 void add_connection_id(const ngtcp2_cid &cid, ClientHandler *handler);
125 void remove_connection_id(const ngtcp2_cid &cid);
134 std::unordered_map<ngtcp2_cid, ClientHandler *> connections_;
135 std::unordered_map<ngtcp2_cid, CloseWait *> close_waits_;
Dshrpx_quic.cc46 bool operator==(const ngtcp2_cid &lhs, const ngtcp2_cid &rhs) { in operator ==()
176 int generate_quic_retry_connection_id(ngtcp2_cid &cid, size_t cidlen, in generate_quic_retry_connection_id()
196 int generate_quic_connection_id(ngtcp2_cid &cid, size_t cidlen, in generate_quic_connection_id()
258 int generate_quic_hashed_connection_id(ngtcp2_cid &dest, in generate_quic_hashed_connection_id()
261 const ngtcp2_cid &cid) { in generate_quic_hashed_connection_id()
284 int generate_quic_stateless_reset_token(uint8_t *token, const ngtcp2_cid &cid, in generate_quic_stateless_reset_token()
297 const ngtcp2_cid &retry_scid, const ngtcp2_cid &odcid, in generate_retry_token()
314 int verify_retry_token(ngtcp2_cid &odcid, const uint8_t *token, size_t tokenlen, in verify_retry_token()
315 uint32_t version, const ngtcp2_cid &dcid, in verify_retry_token()
Dshrpx_quic_connection_handler.cc84 ngtcp2_cid dcid_key; in handle_packet()
172 ngtcp2_cid odcid, *podcid = nullptr; in handle_packet()
369 const Address &local_addr, const ngtcp2_pkt_hd &hd, const ngtcp2_cid *odcid, in handle_new_connection()
478 ngtcp2_cid retry_scid; in send_retry()
489 ngtcp2_cid idcid, iscid; in send_retry()
529 auto cw = std::make_unique<CloseWait>(worker_, std::vector<ngtcp2_cid>{idcid}, in send_retry()
586 ngtcp2_cid cid; in send_stateless_reset()
629 const UpstreamAddr *faddr, uint32_t version, const ngtcp2_cid &ini_dcid, in send_connection_close()
630 const ngtcp2_cid &ini_scid, const Address &remote_addr, in send_connection_close()
657 void QUICConnectionHandler::add_connection_id(const ngtcp2_cid &cid, in add_connection_id()
[all …]
Dshrpx_http3_upstream.h92 const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen,
147 int open_qlog_file(const StringRef &dir, const ngtcp2_cid &scid) const;
166 ngtcp2_cid hashed_scid_;
Dh2load_quic.cc222 int get_new_connection_id(ngtcp2_conn *conn, ngtcp2_cid *cid, uint8_t *token, in get_new_connection_id()
251 int generate_cid(ngtcp2_cid &dest) { in generate_cid()
382 ngtcp2_cid scid, dcid; in quic_init()
Dshrpx_http3_upstream.cc205 int get_new_connection_id(ngtcp2_conn *conn, ngtcp2_cid *cid, uint8_t *token, in get_new_connection_id()
233 int remove_connection_id(ngtcp2_conn *conn, const ngtcp2_cid *cid, in remove_connection_id()
571 const ngtcp2_cid *odcid, const uint8_t *token, in init()
627 ngtcp2_cid scid; in init()
1522 std::vector<ngtcp2_cid> scids(ngtcp2_conn_get_scid(conn_, nullptr) + 1); in on_handler_delete()
2865 const ngtcp2_cid &scid) const { in open_qlog_file()
/third_party/node/deps/ngtcp2/ngtcp2/lib/
Dngtcp2_cid.h51 ngtcp2_cid cid;
72 ngtcp2_cid cid;
100 void ngtcp2_cid_zero(ngtcp2_cid *cid);
106 int ngtcp2_cid_less(const ngtcp2_cid *lhs, const ngtcp2_cid *rhs);
112 int ngtcp2_cid_empty(const ngtcp2_cid *cid);
117 void ngtcp2_scid_init(ngtcp2_scid *scid, uint64_t seq, const ngtcp2_cid *cid);
129 void ngtcp2_dcid_init(ngtcp2_dcid *dcid, uint64_t seq, const ngtcp2_cid *cid,
161 const ngtcp2_cid *cid, const uint8_t *token);
Dngtcp2_cid.c33 void ngtcp2_cid_zero(ngtcp2_cid *cid) { memset(cid, 0, sizeof(*cid)); } in ngtcp2_cid_zero()
35 void ngtcp2_cid_init(ngtcp2_cid *cid, const uint8_t *data, size_t datalen) { in ngtcp2_cid_init()
44 int ngtcp2_cid_eq(const ngtcp2_cid *cid, const ngtcp2_cid *other) { in ngtcp2_cid_eq()
49 int ngtcp2_cid_less(const ngtcp2_cid *lhs, const ngtcp2_cid *rhs) { in ngtcp2_cid_less()
57 int ngtcp2_cid_empty(const ngtcp2_cid *cid) { return cid->datalen == 0; } in ngtcp2_cid_empty()
59 void ngtcp2_scid_init(ngtcp2_scid *scid, uint64_t seq, const ngtcp2_cid *cid) { in ngtcp2_scid_init()
73 void ngtcp2_dcid_init(ngtcp2_dcid *dcid, uint64_t seq, const ngtcp2_cid *cid, in ngtcp2_dcid_init()
127 const ngtcp2_cid *cid, const uint8_t *token) { in ngtcp2_dcid_verify_uniqueness()
Dngtcp2_pkt.h141 ngtcp2_cid odcid;
283 ngtcp2_cid cid;
419 const ngtcp2_cid *dcid, const ngtcp2_cid *scid,
1203 const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen);
Dngtcp2_conn.h369 ngtcp2_cid rcid;
372 ngtcp2_cid oscid;
376 ngtcp2_cid retry_scid;
886 uint8_t type, uint8_t flags, const ngtcp2_cid *dcid, ngtcp2_frame *fr,
Dngtcp2_log.h89 void ngtcp2_log_init(ngtcp2_log *log, const ngtcp2_cid *scid,
Dngtcp2_qlog.h72 void ngtcp2_qlog_start(ngtcp2_qlog *qlog, const ngtcp2_cid *odcid, int server);
Dngtcp2_qlog.c69 static uint8_t *write_cid(uint8_t *p, const ngtcp2_cid *cid) { in write_cid()
175 size_t namelen, const ngtcp2_cid *cid) { in write_pair_cid_impl()
188 static uint8_t *write_common_fields(uint8_t *p, const ngtcp2_cid *odcid) { in write_common_fields()
197 static uint8_t *write_trace(uint8_t *p, int server, const ngtcp2_cid *odcid) { in write_trace()
211 void ngtcp2_qlog_start(ngtcp2_qlog *qlog, const ngtcp2_cid *odcid, int server) { in ngtcp2_qlog_start()
Dngtcp2_crypto.c130 const ngtcp2_cid *cid) { in cid_paramlen()
140 const ngtcp2_cid *cid) { in write_cid_param()
495 static ngtcp2_ssize decode_cid_param(ngtcp2_cid *pdest, const uint8_t *p, in decode_cid_param()
Dngtcp2_pkt.c142 const ngtcp2_cid *dcid, const ngtcp2_cid *scid, in ngtcp2_pkt_hd_init()
2251 uint8_t *dest, size_t destlen, uint32_t version, const ngtcp2_cid *dcid, in ngtcp2_pkt_write_retry()
2252 const ngtcp2_cid *scid, const ngtcp2_cid *odcid, const uint8_t *token, in ngtcp2_pkt_write_retry()
2321 const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen) { in ngtcp2_pkt_encode_pseudo_retry()
Dngtcp2_conn.c73 const ngtcp2_cid *dcid) { in conn_call_recv_client_initial()
235 static int conn_call_get_new_connection_id(ngtcp2_conn *conn, ngtcp2_cid *cid, in conn_call_get_new_connection_id()
251 const ngtcp2_cid *cid) { in conn_call_remove_connection_id()
594 const ngtcp2_cid *dcid) { in conn_call_version_negotiation()
1048 static int conn_new(ngtcp2_conn **pconn, const ngtcp2_cid *dcid, in conn_new()
1049 const ngtcp2_cid *scid, const ngtcp2_path *path, in conn_new()
1112 ngtcp2_ksl_init(&(*pconn)->scid.set, cid_less, sizeof(ngtcp2_cid), mem); in conn_new()
1387 ngtcp2_conn **pconn, const ngtcp2_cid *dcid, const ngtcp2_cid *scid, in ngtcp2_conn_client_new_versioned()
1416 ngtcp2_conn **pconn, const ngtcp2_cid *dcid, const ngtcp2_cid *scid, in ngtcp2_conn_server_new_versioned()
3287 ngtcp2_cid cid; in conn_enqueue_new_connection_id()
[all …]
Dngtcp2_log.c39 void ngtcp2_log_init(ngtcp2_log *log, const ngtcp2_cid *scid, in ngtcp2_log_init()
/third_party/node/deps/ngtcp2/ngtcp2/crypto/includes/ngtcp2/
Dngtcp2_crypto.h535 const ngtcp2_cid *dcid,
589 const ngtcp2_cid *cid);
660 const ngtcp2_cid *retry_scid, const ngtcp2_cid *odcid, ngtcp2_tstamp ts);
681 ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen,
684 const ngtcp2_cid *dcid, ngtcp2_duration timeout, ngtcp2_tstamp ts);
745 uint8_t *dest, size_t destlen, uint32_t version, const ngtcp2_cid *dcid,
746 const ngtcp2_cid *scid, uint64_t error_code, const uint8_t *reason,
762 uint8_t *dest, size_t destlen, uint32_t version, const ngtcp2_cid *dcid,
763 const ngtcp2_cid *scid, const ngtcp2_cid *odcid, const uint8_t *token,
855 const ngtcp2_cid *client_dcid,
/third_party/node/deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/
Dngtcp2.h1115 typedef struct ngtcp2_cid { struct
1124 } ngtcp2_cid; argument
1151 NGTCP2_EXTERN void ngtcp2_cid_init(ngtcp2_cid *cid, const uint8_t *data,
1160 NGTCP2_EXTERN int ngtcp2_cid_eq(const ngtcp2_cid *a, const ngtcp2_cid *b);
1171 ngtcp2_cid dcid;
1175 ngtcp2_cid scid;
1318 ngtcp2_cid cid;
1397 ngtcp2_cid original_dcid;
1403 ngtcp2_cid initial_scid;
1415 ngtcp2_cid retry_scid;
[all …]
/third_party/node/deps/ngtcp2/ngtcp2/crypto/
Dshared.h128 const ngtcp2_cid *client_dcid,
259 const ngtcp2_cid *client_dcid);
310 const ngtcp2_cid *client_dcid);
Dshared.c72 const ngtcp2_cid *client_dcid, in ngtcp2_crypto_derive_initial_secrets()
468 uint32_t version, const ngtcp2_cid *client_dcid) { in ngtcp2_crypto_derive_and_install_initial_key()
612 uint32_t version, const ngtcp2_cid *client_dcid) { in ngtcp2_crypto_derive_and_install_vneg_initial_key()
819 const ngtcp2_cid *cid) { in ngtcp2_crypto_generate_stateless_reset_token()
881 const ngtcp2_cid *retry_scid) { in crypto_generate_retry_token_aad()
899 const ngtcp2_cid *retry_scid, const ngtcp2_cid *odcid, ngtcp2_tstamp ts) { in ngtcp2_crypto_generate_retry_token()
974 ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen, in ngtcp2_crypto_verify_retry_token()
977 const ngtcp2_cid *dcid, ngtcp2_duration timeout, ngtcp2_tstamp ts) { in ngtcp2_crypto_verify_retry_token()
1221 uint8_t *dest, size_t destlen, uint32_t version, const ngtcp2_cid *dcid, in ngtcp2_crypto_write_connection_close()
1222 const ngtcp2_cid *scid, uint64_t error_code, const uint8_t *reason, in ngtcp2_crypto_write_connection_close()
[all …]
/third_party/node/deps/ngtcp2/
Dngtcp2.gyp14 'ngtcp2/lib/ngtcp2_cid.c',
/third_party/curl/lib/vquic/
Dcurl_ngtcp2.c118 ngtcp2_cid dcid;
119 ngtcp2_cid scid;
605 static int cb_get_new_connection_id(ngtcp2_conn *tconn, ngtcp2_cid *cid, in cb_get_new_connection_id()