Home
last modified time | relevance | path

Searched refs:tokenlen (Results 1 – 7 of 7) sorted by relevance

/third_party/lwip/src/core/
Ddef.c108 size_t tokenlen = strlen(token); in lwip_strnstr() local
109 if (tokenlen == 0) { in lwip_strnstr()
112 for (p = buffer; *p && (p + tokenlen <= buffer + n); p++) { in lwip_strnstr()
113 if ((*p == *token) && (strncmp(p, token, tokenlen) == 0)) { in lwip_strnstr()
/third_party/nghttp2/src/
Dshrpx_quic_connection_handler.cc174 size_t tokenlen = 0; in handle_packet() local
206 if (hd.tokenlen == 0) { in handle_packet()
228 if (verify_retry_token(odcid, hd.token, hd.tokenlen, hd.version, in handle_packet()
251 tokenlen = hd.tokenlen; in handle_packet()
262 if (hd.tokenlen != NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN + 1) { in handle_packet()
281 if (verify_token(hd.token, hd.tokenlen - 1, &remote_addr.su.sa, in handle_packet()
305 tokenlen = hd.tokenlen; in handle_packet()
360 token, tokenlen); in handle_packet()
382 const uint8_t *token, size_t tokenlen) { in handle_new_connection() argument
434 tokenlen) != 0) { in handle_new_connection()
[all …]
Dshrpx_quic.cc273 int generate_retry_token(uint8_t *token, size_t &tokenlen, uint32_t version, in generate_retry_token() argument
287 tokenlen = stokenlen; in generate_retry_token()
292 int verify_retry_token(ngtcp2_cid &odcid, const uint8_t *token, size_t tokenlen, in verify_retry_token() argument
301 if (ngtcp2_crypto_verify_retry_token(&odcid, token, tokenlen, secret, in verify_retry_token()
310 int generate_token(uint8_t *token, size_t &tokenlen, const sockaddr *sa, in generate_token() argument
322 tokenlen = stokenlen; in generate_token()
327 int verify_token(const uint8_t *token, size_t tokenlen, const sockaddr *sa, in verify_token() argument
333 if (ngtcp2_crypto_verify_regular_token(token, tokenlen, secret, secretlen, sa, in verify_token()
Dshrpx_quic.h111 int generate_retry_token(uint8_t *token, size_t &tokenlen, uint32_t version,
116 int verify_retry_token(ngtcp2_cid &odcid, const uint8_t *token, size_t tokenlen,
121 int generate_token(uint8_t *token, size_t &tokenlen, const sockaddr *sa,
124 int verify_token(const uint8_t *token, size_t tokenlen, const sockaddr *sa,
Dshrpx_quic_connection_handler.h124 const uint8_t *token, size_t tokenlen);
Dshrpx_http3_upstream.cc483 size_t tokenlen; in handshake_completed() local
491 if (generate_token(token.data(), tokenlen, path->remote.addr, in handshake_completed()
497 assert(tokenlen == NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN); in handshake_completed()
499 token[tokenlen++] = qkm.id; in handshake_completed()
501 auto rv = ngtcp2_conn_submit_new_token(conn_, token.data(), tokenlen); in handshake_completed()
530 size_t tokenlen) { in init() argument
617 settings.tokenlen = tokenlen; in init()
Dshrpx_http3_upstream.h92 const ngtcp2_cid *odcid, const uint8_t *token, size_t tokenlen);