Searched refs:cookie_len (Results 1 – 9 of 9) sorted by relevance
/mbedtls-latest/library/ |
D | ssl_client.c | 522 uint8_t cookie_len = 0; in ssl_write_client_hello_body() local 524 uint16_t cookie_len = 0; in ssl_write_client_hello_body() 530 handshake->cookie_len); in ssl_write_client_hello_body() 531 cookie_len = handshake->cookie_len; in ssl_write_client_hello_body() 534 MBEDTLS_SSL_CHK_BUF_PTR(p, end, cookie_len + 1); in ssl_write_client_hello_body() 535 *p++ = (unsigned char) cookie_len; in ssl_write_client_hello_body() 536 if (cookie_len > 0) { in ssl_write_client_hello_body() 537 memcpy(p, handshake->cookie, cookie_len); in ssl_write_client_hello_body() 538 p += cookie_len; in ssl_write_client_hello_body()
|
D | ssl_tls13_client.c | 533 uint16_t cookie_len; in ssl_tls13_parse_cookie_ext() local 539 cookie_len = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_cookie_ext() 542 MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, cookie_len); in ssl_tls13_parse_cookie_ext() 543 MBEDTLS_SSL_DEBUG_BUF(3, "cookie extension", p, cookie_len); in ssl_tls13_parse_cookie_ext() 546 handshake->cookie_len = 0; in ssl_tls13_parse_cookie_ext() 547 handshake->cookie = mbedtls_calloc(1, cookie_len); in ssl_tls13_parse_cookie_ext() 551 cookie_len)); in ssl_tls13_parse_cookie_ext() 555 memcpy(handshake->cookie, p, cookie_len); in ssl_tls13_parse_cookie_ext() 556 handshake->cookie_len = cookie_len; in ssl_tls13_parse_cookie_ext() 578 handshake->cookie_len); in ssl_tls13_write_cookie_ext() [all …]
|
D | ssl_tls12_client.c | 1101 uint8_t cookie_len; in ssl_parse_hello_verify_request() local 1103 uint16_t cookie_len; in ssl_parse_hello_verify_request() local 1144 cookie_len = *p++; in ssl_parse_hello_verify_request() 1145 if ((ssl->in_msg + ssl->in_msglen) - p < cookie_len) { in ssl_parse_hello_verify_request() 1152 MBEDTLS_SSL_DEBUG_BUF(3, "cookie", p, cookie_len); in ssl_parse_hello_verify_request() 1156 ssl->handshake->cookie = mbedtls_calloc(1, cookie_len); in ssl_parse_hello_verify_request() 1158 MBEDTLS_SSL_DEBUG_MSG(1, ("alloc failed (%d bytes)", cookie_len)); in ssl_parse_hello_verify_request() 1162 memcpy(ssl->handshake->cookie, p, cookie_len); in ssl_parse_hello_verify_request() 1163 ssl->handshake->cookie_len = cookie_len; in ssl_parse_hello_verify_request() 1243 ssl->handshake->cookie_len = 0; in ssl_parse_server_hello()
|
D | ssl_cookie.c | 279 const unsigned char *cookie, size_t cookie_len, in mbedtls_ssl_cookie_check() argument 297 if (cookie_len != COOKIE_LEN) { in mbedtls_ssl_cookie_check()
|
D | ssl_tls12_server.c | 896 size_t cookie_offset, cookie_len; in ssl_parse_client_hello() local 1209 cookie_len = buf[cookie_offset]; in ssl_parse_client_hello() 1211 if (cookie_offset + 1 + cookie_len + 2 > msg_len) { in ssl_parse_client_hello() 1219 buf + cookie_offset + 1, cookie_len); in ssl_parse_client_hello() 1228 buf + cookie_offset + 1, cookie_len, in ssl_parse_client_hello() 1240 if (cookie_len != 0) { in ssl_parse_client_hello() 1252 ciph_offset = cookie_offset + 1 + cookie_len; in ssl_parse_client_hello()
|
D | ssl_msg.c | 3478 size_t sid_len, cookie_len, epoch, fragment_offset; in mbedtls_ssl_check_dtls_clihlo_cookie() local 3537 cookie_len = in[60 + sid_len]; in mbedtls_ssl_check_dtls_clihlo_cookie() 3538 if (59 + 1 + sid_len + 1 + cookie_len > in_len) { in mbedtls_ssl_check_dtls_clihlo_cookie() 3540 (unsigned) cookie_len, in mbedtls_ssl_check_dtls_clihlo_cookie() 3546 in + sid_len + 61, cookie_len); in mbedtls_ssl_check_dtls_clihlo_cookie() 3548 in + sid_len + 61, cookie_len, in mbedtls_ssl_check_dtls_clihlo_cookie()
|
D | ssl_misc.h | 874 uint8_t cookie_len; member 882 uint16_t cookie_len; /*!< DTLS: HelloVerifyRequest cookie length member
|
D | ssl_tls.c | 1287 const unsigned char *cookie, size_t cookie_len, in ssl_cookie_check_dummy() argument 1292 ((void) cookie_len); in ssl_cookie_check_dummy()
|
/mbedtls-latest/tests/suites/ |
D | test_suite_ssl.data | 3253 Cookie parsing: cookie_len overflow
|