Lines Matching refs:session_ctx

395     if (!CRYPTO_THREAD_read_lock(s->session_ctx->lock)) {  in ssl_generate_session_id()
403 else if (s->session_ctx->generate_session_id) in ssl_generate_session_id()
404 cb = s->session_ctx->generate_session_id; in ssl_generate_session_id()
405 CRYPTO_THREAD_unlock(s->session_ctx->lock); in ssl_generate_session_id()
449 if (ossl_time_is_zero(s->session_ctx->session_timeout)) in ssl_get_new_session()
452 ss->timeout = s->session_ctx->session_timeout; in ssl_get_new_session()
499 if ((s->session_ctx->session_cache_mode in lookup_sess_in_cache()
510 if (!CRYPTO_THREAD_read_lock(s->session_ctx->lock)) in lookup_sess_in_cache()
512 ret = lh_SSL_SESSION_retrieve(s->session_ctx->sessions, &data); in lookup_sess_in_cache()
517 CRYPTO_THREAD_unlock(s->session_ctx->lock); in lookup_sess_in_cache()
519 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_miss); in lookup_sess_in_cache()
522 if (ret == NULL && s->session_ctx->get_session_cb != NULL) { in lookup_sess_in_cache()
525 ret = s->session_ctx->get_session_cb(SSL_CONNECTION_GET_USER_SSL(s), in lookup_sess_in_cache()
535 ssl_tsan_counter(s->session_ctx, in lookup_sess_in_cache()
536 &s->session_ctx->stats.sess_cb_hit); in lookup_sess_in_cache()
552 if ((s->session_ctx->session_cache_mode & in lookup_sess_in_cache()
559 (void)SSL_CTX_add_session(s->session_ctx, ret); in lookup_sess_in_cache()
667 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_timeout); in ssl_get_prev_session()
670 SSL_CTX_remove_session(s->session_ctx, ret); in ssl_get_prev_session()
694 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_hit); in ssl_get_prev_session()
1258 SSL_CTX_remove_session(s->session_ctx, s->session); in ssl_clear_bad_session()