Home
last modified time | relevance | path

Searched refs:cookie_len (Results 1 – 4 of 4) sorted by relevance

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dssl_cookie.c207 const unsigned char *cookie, size_t cookie_len, in mbedtls_ssl_cookie_check() argument
219 if( cookie_len != COOKIE_LEN ) in mbedtls_ssl_cookie_check()
Dssl_cli.c1324 unsigned char cookie_len; local
1355 cookie_len = *p++;
1356 MBEDTLS_SSL_DEBUG_BUF( 3, "cookie", p, cookie_len );
1358 if( ( ssl->in_msg + ssl->in_msglen ) - p < cookie_len )
1369 ssl->handshake->verify_cookie = mbedtls_calloc( 1, cookie_len );
1372 MBEDTLS_SSL_DEBUG_MSG( 1, ( "alloc failed (%d bytes)", cookie_len ) );
1376 memcpy( ssl->handshake->verify_cookie, p, cookie_len );
1377 ssl->handshake->verify_cookie_len = cookie_len;
Dssl_srv.c1077 size_t cookie_offset, cookie_len; local
1404 cookie_len = buf[cookie_offset];
1406 if( cookie_offset + 1 + cookie_len + 2 > msg_len )
1413 buf + cookie_offset + 1, cookie_len );
1423 buf + cookie_offset + 1, cookie_len,
1439 if( cookie_len != 0 )
1451 ciph_offset = cookie_offset + 1 + cookie_len;
Dssl_tls.c3288 size_t sid_len, cookie_len; in ssl_check_dtls_clihlo_cookie() local
3332 cookie_len = in[60 + sid_len]; in ssl_check_dtls_clihlo_cookie()
3333 if( cookie_len > in_len - 60 ) in ssl_check_dtls_clihlo_cookie()
3336 if( f_cookie_check( p_cookie, in + sid_len + 61, cookie_len, in ssl_check_dtls_clihlo_cookie()
5369 const unsigned char *cookie, size_t cookie_len, in ssl_cookie_check_dummy() argument
5374 ((void) cookie_len); in ssl_cookie_check_dummy()