• Home
  • Raw
  • Download

Lines Matching refs:session_ctx

383     if (!CRYPTO_THREAD_read_lock(s->session_ctx->lock)) {  in ssl_generate_session_id()
391 else if (s->session_ctx->generate_session_id) in ssl_generate_session_id()
392 cb = s->session_ctx->generate_session_id; in ssl_generate_session_id()
393 CRYPTO_THREAD_unlock(s->session_ctx->lock); in ssl_generate_session_id()
437 if (s->session_ctx->session_timeout == 0) in ssl_get_new_session()
440 ss->timeout = s->session_ctx->session_timeout; in ssl_get_new_session()
486 if ((s->session_ctx->session_cache_mode in lookup_sess_in_cache()
497 if (!CRYPTO_THREAD_read_lock(s->session_ctx->lock)) in lookup_sess_in_cache()
499 ret = lh_SSL_SESSION_retrieve(s->session_ctx->sessions, &data); in lookup_sess_in_cache()
504 CRYPTO_THREAD_unlock(s->session_ctx->lock); in lookup_sess_in_cache()
506 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_miss); in lookup_sess_in_cache()
509 if (ret == NULL && s->session_ctx->get_session_cb != NULL) { in lookup_sess_in_cache()
512 ret = s->session_ctx->get_session_cb(s, sess_id, sess_id_len, &copy); in lookup_sess_in_cache()
515 ssl_tsan_counter(s->session_ctx, in lookup_sess_in_cache()
516 &s->session_ctx->stats.sess_cb_hit); in lookup_sess_in_cache()
532 if ((s->session_ctx->session_cache_mode & in lookup_sess_in_cache()
539 (void)SSL_CTX_add_session(s->session_ctx, ret); in lookup_sess_in_cache()
647 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_timeout); in ssl_get_prev_session()
650 SSL_CTX_remove_session(s->session_ctx, ret); in ssl_get_prev_session()
674 ssl_tsan_counter(s->session_ctx, &s->session_ctx->stats.sess_hit); in ssl_get_prev_session()
1193 SSL_CTX_remove_session(s->session_ctx, s->session); in ssl_clear_bad_session()