Lines Matching refs:SSL_SESSION
159 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *session);
160 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *session);
161 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *session, int lock);
163 SSL_SESSION *SSL_SESSION_new(void) { in SSL_SESSION_new()
164 SSL_SESSION *session = (SSL_SESSION *)OPENSSL_malloc(sizeof(SSL_SESSION)); in SSL_SESSION_new()
169 memset(session, 0, sizeof(SSL_SESSION)); in SSL_SESSION_new()
179 SSL_SESSION *SSL_SESSION_up_ref(SSL_SESSION *session) { in SSL_SESSION_up_ref()
186 void SSL_SESSION_free(SSL_SESSION *session) { in SSL_SESSION_free()
207 const uint8_t *SSL_SESSION_get_id(const SSL_SESSION *session, in SSL_SESSION_get_id()
215 long SSL_SESSION_get_timeout(const SSL_SESSION *session) { in SSL_SESSION_get_timeout()
219 long SSL_SESSION_get_time(const SSL_SESSION *session) { in SSL_SESSION_get_time()
227 uint32_t SSL_SESSION_get_key_exchange_info(const SSL_SESSION *session) { in SSL_SESSION_get_key_exchange_info()
231 X509 *SSL_SESSION_get0_peer(const SSL_SESSION *session) { in SSL_SESSION_get0_peer()
235 long SSL_SESSION_set_time(SSL_SESSION *session, long time) { in SSL_SESSION_set_time()
244 long SSL_SESSION_set_timeout(SSL_SESSION *session, long timeout) { in SSL_SESSION_set_timeout()
253 int SSL_SESSION_set1_id_context(SSL_SESSION *session, const uint8_t *sid_ctx, in SSL_SESSION_set1_id_context()
266 SSL_SESSION *SSL_magic_pending_session_ptr(void) { in SSL_magic_pending_session_ptr()
267 return (SSL_SESSION *)&g_pending_session_magic; in SSL_magic_pending_session_ptr()
270 SSL_SESSION *SSL_get_session(const SSL *ssl) in SSL_get_session()
276 SSL_SESSION *SSL_get1_session(SSL *ssl) { in SSL_get1_session()
293 int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg) { in SSL_SESSION_set_ex_data()
297 void *SSL_SESSION_get_ex_data(const SSL_SESSION *session, int idx) { in SSL_SESSION_get_ex_data()
307 SSL_SESSION *session = SSL_SESSION_new(); in ssl_get_new_session()
364 SSL *ssl, SSL_SESSION **out_session, const uint8_t *session_id, in ssl_lookup_session()
372 SSL_SESSION *session; in ssl_lookup_session()
376 SSL_SESSION data; in ssl_lookup_session()
428 SSL *ssl, SSL_SESSION **out_session, int *out_send_ticket, in ssl_get_prev_session()
432 SSL_SESSION *session = NULL; in ssl_get_prev_session()
500 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_CTX_add_session()
505 SSL_SESSION *old_session; in SSL_CTX_add_session()
542 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_CTX_remove_session()
546 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *session, int lock) { in remove_session_lock()
553 SSL_SESSION *found_session = lh_SSL_SESSION_retrieve(ctx->sessions, in remove_session_lock()
577 int SSL_set_session(SSL *ssl, SSL_SESSION *session) { in SSL_set_session()
613 LHASH_OF(SSL_SESSION) *cache;
616 static void timeout_doall_arg(SSL_SESSION *session, void *void_param) { in timeout_doall_arg()
659 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_SESSION_list_remove()
664 if (session->next == (SSL_SESSION *)&ctx->session_cache_tail) { in SSL_SESSION_list_remove()
666 if (session->prev == (SSL_SESSION *)&ctx->session_cache_head) { in SSL_SESSION_list_remove()
672 session->prev->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_remove()
675 if (session->prev == (SSL_SESSION *)&ctx->session_cache_head) { in SSL_SESSION_list_remove()
678 session->next->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_remove()
687 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_SESSION_list_add()
695 session->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
696 session->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
700 session->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
706 int (*cb)(SSL *ssl, SSL_SESSION *session)) { in SSL_CTX_sess_set_new_cb()
710 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *session) { in SSL_CTX_sess_get_new_cb()
715 SSL_CTX *ctx, void (*cb)(SSL_CTX *ctx, SSL_SESSION *session)) { in SSL_CTX_sess_set_remove_cb()
720 SSL_SESSION *session) { in SSL_CTX_sess_get_remove_cb()
725 SSL_SESSION *(*cb)(SSL *ssl, in SSL_CTX_sess_set_get_cb()
731 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))( in SSL_CTX_sess_get_get_cb()