Home
last modified time | relevance | path

Searched refs:ext_len (Results 1 – 3 of 3) sorted by relevance

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dssl_cli.c710 size_t i, n, olen, ext_len = 0; local
960 ssl_write_hostname_ext( ssl, p + 2 + ext_len, &olen );
961 ext_len += olen;
965 ssl_write_renegotiation_ext( ssl, p + 2 + ext_len, &olen );
966 ext_len += olen;
971 ssl_write_signature_algorithms_ext( ssl, p + 2 + ext_len, &olen );
972 ext_len += olen;
977 ssl_write_supported_elliptic_curves_ext( ssl, p + 2 + ext_len, &olen );
978 ext_len += olen;
980 ssl_write_supported_point_formats_ext( ssl, p + 2 + ext_len, &olen );
[all …]
Dssl_srv.c1075 size_t msg_len, ciph_len, sess_len, comp_len, ext_len; local
1524 ext_len = ( buf[ext_offset + 0] << 8 )
1527 if( ( ext_len > 0 && ext_len < 4 ) ||
1528 msg_len != ext_offset + 2 + ext_len )
1535 ext_len = 0;
1538 MBEDTLS_SSL_DEBUG_BUF( 3, "client hello extensions", ext, ext_len );
1540 while( ext_len != 0 )
1547 if( ext_size + 4 > ext_len )
1689 ext_len -= 4 + ext_size;
1692 if( ext_len > 0 && ext_len < 4 )
[all …]
Dssl_tls.c7504 size_t ext_len; in mbedtls_ssl_check_cert_usage() local
7564 ext_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_SERVER_AUTH ); in mbedtls_ssl_check_cert_usage()
7569 ext_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_CLIENT_AUTH ); in mbedtls_ssl_check_cert_usage()
7572 if( mbedtls_x509_crt_check_extended_key_usage( cert, ext_oid, ext_len ) != 0 ) in mbedtls_ssl_check_cert_usage()