/openthread-3.5.0/third_party/mbedtls/repo/library/ |
D | ssl_cache.c | 53 int mbedtls_ssl_cache_get( void *data, mbedtls_ssl_session *session ) in mbedtls_ssl_cache_get() argument 81 if( session->id_len != entry->session.id_len || in mbedtls_ssl_cache_get() 82 memcmp( session->id, entry->session.id, in mbedtls_ssl_cache_get() 83 entry->session.id_len ) != 0 ) in mbedtls_ssl_cache_get() 88 ret = mbedtls_ssl_session_copy( session, &entry->session ); in mbedtls_ssl_cache_get() 106 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get() 113 mbedtls_x509_crt_init( session->peer_cert ); in mbedtls_ssl_cache_get() 114 if( mbedtls_x509_crt_parse( session->peer_cert, entry->peer_cert.p, in mbedtls_ssl_cache_get() 117 mbedtls_free( session->peer_cert ); in mbedtls_ssl_cache_get() 118 session->peer_cert = NULL; in mbedtls_ssl_cache_get() [all …]
|
D | ssl_tls.c | 2142 static void ssl_clear_peer_cert( mbedtls_ssl_session *session ) in ssl_clear_peer_cert() argument 2145 if( session->peer_cert != NULL ) in ssl_clear_peer_cert() 2147 mbedtls_x509_crt_free( session->peer_cert ); in ssl_clear_peer_cert() 2148 mbedtls_free( session->peer_cert ); in ssl_clear_peer_cert() 2149 session->peer_cert = NULL; in ssl_clear_peer_cert() 2152 if( session->peer_cert_digest != NULL ) in ssl_clear_peer_cert() 2155 mbedtls_free( session->peer_cert_digest ); in ssl_clear_peer_cert() 2156 session->peer_cert_digest = NULL; in ssl_clear_peer_cert() 2157 session->peer_cert_digest_type = MBEDTLS_MD_NONE; in ssl_clear_peer_cert() 2158 session->peer_cert_digest_len = 0; in ssl_clear_peer_cert() [all …]
|
D | ssl_ticket.c | 199 const mbedtls_ssl_session *session, in mbedtls_ssl_ticket_write() argument 241 if( ( ret = mbedtls_ssl_session_save( session, in mbedtls_ssl_ticket_write() 298 mbedtls_ssl_session *session, in mbedtls_ssl_ticket_parse() argument 363 if( ( ret = mbedtls_ssl_session_load( session, ticket, clear_len ) ) != 0 ) in mbedtls_ssl_ticket_parse() 371 if( current_time < session->start || in mbedtls_ssl_ticket_parse() 372 (uint32_t)( current_time - session->start ) > ctx->ticket_lifetime ) in mbedtls_ssl_ticket_parse()
|
D | ssl_srv.c | 625 mbedtls_ssl_session session; in ssl_parse_session_ticket_ext() local 627 mbedtls_ssl_session_init( &session ); in ssl_parse_session_ticket_ext() 654 if( ( ret = ssl->conf->f_ticket_parse( ssl->conf->p_ticket, &session, in ssl_parse_session_ticket_ext() 657 mbedtls_ssl_session_free( &session ); in ssl_parse_session_ticket_ext() 673 session.id_len = ssl->session_negotiate->id_len; in ssl_parse_session_ticket_ext() 674 memcpy( &session.id, ssl->session_negotiate->id, session.id_len ); in ssl_parse_session_ticket_ext() 677 memcpy( ssl->session_negotiate, &session, sizeof( mbedtls_ssl_session ) ); in ssl_parse_session_ticket_ext() 680 mbedtls_platform_zeroize( &session, sizeof( mbedtls_ssl_session ) ); in ssl_parse_session_ticket_ext() 2763 mbedtls_ssl_session * const session = ssl->session_negotiate; in ssl_handle_id_based_session_resumption() local 2769 if( session->id_len == 0 ) in ssl_handle_id_based_session_resumption() [all …]
|
D | ssl_cli.c | 4353 if( ssl->session != NULL && ssl->session->ticket != NULL ) in ssl_parse_new_session_ticket() 4355 mbedtls_platform_zeroize( ssl->session->ticket, in ssl_parse_new_session_ticket() 4356 ssl->session->ticket_len ); in ssl_parse_new_session_ticket() 4357 mbedtls_free( ssl->session->ticket ); in ssl_parse_new_session_ticket() 4358 ssl->session->ticket = NULL; in ssl_parse_new_session_ticket() 4359 ssl->session->ticket_len = 0; in ssl_parse_new_session_ticket()
|
/openthread-3.5.0/third_party/mbedtls/repo/include/mbedtls/ |
D | ssl_cache.h | 70 mbedtls_ssl_session session; /*!< entry session */ member 105 int mbedtls_ssl_cache_get( void *data, mbedtls_ssl_session *session ); 114 int mbedtls_ssl_cache_set( void *data, const mbedtls_ssl_session *session );
|
D | ssl.h | 1310 mbedtls_ssl_session *session; /*!< negotiated session data */ member 2030 const mbedtls_ssl_session *session, 2124 mbedtls_ssl_session *session, 2526 int mbedtls_ssl_set_session( mbedtls_ssl_context *ssl, const mbedtls_ssl_session *session ); 2561 int mbedtls_ssl_session_load( mbedtls_ssl_session *session, 2591 int mbedtls_ssl_session_save( const mbedtls_ssl_session *session, 3937 int mbedtls_ssl_get_session( const mbedtls_ssl_context *ssl, mbedtls_ssl_session *session ); 4389 void mbedtls_ssl_session_init( mbedtls_ssl_session *session ); 4400 void mbedtls_ssl_session_free( mbedtls_ssl_session *session );
|
/openthread-3.5.0/third_party/mbedtls/repo/tests/ |
D | Descriptions.txt | 21 covered by compat.sh: session resumption (using session cache or tickets),
|
/openthread-3.5.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_ssl.function | 1441 * Populate a session structure for serialization tests. 1444 static int ssl_populate_session( mbedtls_ssl_session *session, 1449 session->start = mbedtls_time( NULL ) - 42; 1451 session->ciphersuite = 0xabcd; 1452 session->compression = 1; 1453 session->id_len = sizeof( session->id ); 1454 memset( session->id, 66, session->id_len ); 1455 memset( session->master, 17, sizeof( session->master ) ); 1470 session->peer_cert = mbedtls_calloc( 1, sizeof( *session->peer_cert ) ); 1471 if( session->peer_cert == NULL ) [all …]
|
D | test_suite_ssl.data | 653 SSL session serialization: Wrong major version 656 SSL session serialization: Wrong minor version 659 SSL session serialization: Wrong patch version 662 SSL session serialization: Wrong config
|
/openthread-3.5.0/src/cli/ |
D | README_JOINER.md | 38 …Note this value takes the place of the place of EUI-64 during the joiner session of Thread commiss…
|
D | README_COMMISSIONER.md | 195 Get current commissioner session id.
|
D | README_COAPS.md | 125 Establish DTLS session.
|
/openthread-3.5.0/src/core/meshcop/ |
D | dtls.cpp | 536 … mSsl.MBEDTLS_PRIVATE(session)->MBEDTLS_PRIVATE(peer_cert)->raw.p, in GetPeerCertificateBase64() 537 … mSsl.MBEDTLS_PRIVATE(session)->MBEDTLS_PRIVATE(peer_cert)->raw.len) == 0, in GetPeerCertificateBase64() 543 …mSsl.MBEDTLS_PRIVATE(session)->MBEDTLS_PRIVATE(peer_cert)->MBEDTLS_PRIVATE(raw).MBEDTLS_PRIVATE(p), in GetPeerCertificateBase64() 544 …mSsl.MBEDTLS_PRIVATE(session)->MBEDTLS_PRIVATE(peer_cert)->MBEDTLS_PRIVATE(raw).MBEDTLS_PRIVATE(le… in GetPeerCertificateBase64()
|
/openthread-3.5.0/tests/scripts/thread-cert/ |
D | node.py | 2218 session = None 2228 if session: 2229 session['counters'] = session_counters 2230 sessions.append(session) 2231 session = { 2249 if not session: 2264 if session: 2265 session['counters'] = session_counters 2266 sessions.append(session)
|
/openthread-3.5.0/third_party/mbedtls/repo/ |
D | ChangeLog | 52 and mbedtls_ssl_free() would cause an internal session buffer to 302 * When using session cache based session resumption on the server, 303 double-check that custom session cache implementations return 1059 mbedtls_ssl_session_load() to allow serializing a session, for example to 1060 store it in non-volatile storage, and later using it for TLS session 1306 * Reduce RAM consumption during session renegotiation by not storing 1307 the peer CRT chain and session ticket twice. 1377 * Fix an unsafe bounds check when restoring an SSL session from a ticket. 1534 * Add tests for session resumption in DTLS. 1611 and mbedtls_ssl_get_record_expansion() after a session reset. Fixes #1941. [all …]
|
/openthread-3.5.0/third_party/mbedtls/repo/programs/ |
D | README.md | 44 …ecure channel using RSA for authentication and Diffie-Hellman to generate a shared AES session key.
|