Lines Matching defs:session

660     int tickets;                /* enable / disable session tickets         */
662 int ticket_rotate; /* session ticket rotate (code coverage) */
663 int ticket_timeout; /* session ticket lifetime */
664 int ticket_aead; /* session ticket protection */
665 int cache_max; /* max number of session cache entries */
667 int cache_timeout; /* expiration delay of session cache entries*/
1385 /* Functions for session ticket tests */
1386 int dummy_ticket_write(void *p_ticket, const mbedtls_ssl_session *session,
1402 /* Dump session state */
1403 if ((ret = mbedtls_ssl_session_save(session, p, end - p,
1413 int dummy_ticket_parse(void *p_ticket, mbedtls_ssl_session *session,
1419 if ((ret = mbedtls_ssl_session_load(session, buf + 4, len - 4)) != 0) {
1430 session->ticket_creation_time = mbedtls_ms_time() + 1000;
1434 session->ticket_creation_time = mbedtls_ms_time() -
1440 session->ticket_age_add += MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE + 4 * 1000;
1442 session->ticket_creation_time = mbedtls_ms_time();
1447 session->ticket_age_add -= MBEDTLS_SSL_TLS1_3_TICKET_AGE_TOLERANCE + 4 * 1000;
1449 session->ticket_creation_time = mbedtls_ms_time();
1452 session->ticket_flags = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_NONE;
1455 session->ticket_flags = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK;
1458 session->ticket_flags = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL;
1461 session->ticket_flags = MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ALL;
2555 * 0. Initialize the RNG and the session data
2984 * (used for external synchronization of session ticket encryption keys)
3835 * See the test 'Event-driven I/O: session-id resume, UDP packing'
4176 mbedtls_ssl_cache_remove(&cache, ssl.session->id, ssl.session->id_len);