Lines Matching defs:session
2 * SSL session cache implementation
8 * These session callbacks use a simple chained list
9 * to store and retrieve the session information.
77 mbedtls_ssl_session *session)
94 ret = mbedtls_ssl_session_load(session,
95 entry->session,
120 /* zeroize and free session structure */
121 if (entry->session != NULL) {
122 mbedtls_zeroize_and_free(entry->session, entry->session_len);
143 /* Check 1: Is there already an entry with the given session ID?
147 * If not, `count` will hold the size of the session cache
230 if (cur->session != NULL) {
249 const mbedtls_ssl_session *session)
271 /* Check how much space we need to serialize the session
273 ret = mbedtls_ssl_session_save(session, NULL, 0, &session_serialized_len);
284 /* Now serialize the session into the allocated buffer. */
285 ret = mbedtls_ssl_session_save(session,
300 cur->session = session_serialized;