Lines Matching defs:cookie_len
533 uint16_t cookie_len;
539 cookie_len = MBEDTLS_GET_UINT16_BE(p, 0);
542 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, cookie_len);
543 MBEDTLS_SSL_DEBUG_BUF(3, "cookie extension", p, cookie_len);
546 handshake->cookie_len = 0;
547 handshake->cookie = mbedtls_calloc(1, cookie_len);
551 cookie_len));
555 memcpy(handshake->cookie, p, cookie_len);
556 handshake->cookie_len = cookie_len;
578 handshake->cookie_len);
580 MBEDTLS_SSL_CHK_BUF_PTR(p, end, handshake->cookie_len + 6);
585 MBEDTLS_PUT_UINT16_BE(handshake->cookie_len + 2, p, 2);
586 MBEDTLS_PUT_UINT16_BE(handshake->cookie_len, p, 4);
590 memcpy(p, handshake->cookie, handshake->cookie_len);
592 *out_len = handshake->cookie_len + 6;