Lines Matching refs:initial_ctx
313 if (ssl->initial_ctx->session_timeout != 0) { in ssl_get_new_session()
314 session->timeout = ssl->initial_ctx->session_timeout; in ssl_get_new_session()
374 if (!(ssl->initial_ctx->session_cache_mode & in ssl_lookup_session()
381 CRYPTO_MUTEX_lock_read(&ssl->initial_ctx->lock); in ssl_lookup_session()
382 session = lh_SSL_SESSION_retrieve(ssl->initial_ctx->sessions, &data); in ssl_lookup_session()
387 CRYPTO_MUTEX_unlock(&ssl->initial_ctx->lock); in ssl_lookup_session()
396 if (ssl->initial_ctx->get_session_cb == NULL) { in ssl_lookup_session()
400 session = ssl->initial_ctx->get_session_cb(ssl, (uint8_t *)session_id, in ssl_lookup_session()
418 if (!(ssl->initial_ctx->session_cache_mode & in ssl_lookup_session()
420 SSL_CTX_add_session(ssl->initial_ctx, session); in ssl_lookup_session()
480 SSL_CTX_remove_session(ssl->initial_ctx, session); in ssl_get_prev_session()