Lines Matching refs:cookie
261 dtls_get_cookie(uint8 *msg, size_t msglen, uint8 **cookie) { in dtls_get_cookie() argument
278 *cookie = msg + sizeof(uint8); in dtls_get_cookie()
289 uint8 *cookie, int *clen) { in dtls_create_cookie() argument
337 memset(cookie + len, 0, *clen - len); in dtls_create_cookie()
341 memcpy(cookie, buf, *clen); in dtls_create_cookie()
1548 uint8 *cookie = NULL; in dtls_verify_peer() local
1563 len = dtls_get_cookie(data, data_length, &cookie); in dtls_verify_peer()
1569 dtls_debug_dump("compare with cookie", cookie, len); in dtls_verify_peer()
1572 if (len == DTLS_COOKIE_LENGTH && memcmp(cookie, mycookie, len) == 0) { in dtls_verify_peer()
1578 dtls_debug_dump("invalid cookie", cookie, len); in dtls_verify_peer()
2309 uint8 cookie[], size_t cookie_length) { in dtls_send_client_hello() argument
2357 memcpy(p, cookie, cookie_length); in dtls_send_client_hello()
2542 res = dtls_send_client_hello(ctx, peer, hv->cookie, hv->cookie_length); in check_server_hello_verify_request()