Lines Matching refs:SSL_SESSION

23 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s);
24 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s);
25 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
27 DEFINE_STACK_OF(SSL_SESSION) in DEFINE_STACK_OF() argument
29 __owur static ossl_inline int sess_timedout(OSSL_TIME t, SSL_SESSION *ss) in DEFINE_STACK_OF()
38 __owur static ossl_inline int timeoutcmp(SSL_SESSION *a, SSL_SESSION *b) in timeoutcmp()
47 void ssl_session_calculate_timeout(SSL_SESSION *ss) in ssl_session_calculate_timeout()
61 SSL_SESSION *SSL_get_session(const SSL *ssl) in SSL_get_session()
72 SSL_SESSION *SSL_get1_session(SSL *ssl) in SSL_get1_session()
75 SSL_SESSION *sess; in SSL_get1_session()
91 int SSL_SESSION_set_ex_data(SSL_SESSION *s, int idx, void *arg) in SSL_SESSION_set_ex_data()
96 void *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx) in SSL_SESSION_get_ex_data()
101 SSL_SESSION *SSL_SESSION_new(void) in SSL_SESSION_new()
103 SSL_SESSION *ss; in SSL_SESSION_new()
135 static SSL_SESSION *ssl_session_dup_intern(const SSL_SESSION *src, int ticket) in ssl_session_dup_intern()
137 SSL_SESSION *dest; in ssl_session_dup_intern()
147 memcpy(dest, src, offsetof(SSL_SESSION, prev)); in ssl_session_dup_intern()
269 SSL_SESSION *SSL_SESSION_dup(const SSL_SESSION *src) in SSL_SESSION_dup()
280 SSL_SESSION *ssl_session_dup(const SSL_SESSION *src, int ticket) in ssl_session_dup()
282 SSL_SESSION *sess = ssl_session_dup_intern(src, ticket); in ssl_session_dup()
290 const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, unsigned int *len) in SSL_SESSION_get_id()
297 const unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s, in SSL_SESSION_get0_id_context()
305 unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s) in SSL_SESSION_get_compress_id()
350 int ssl_generate_session_id(SSL_CONNECTION *s, SSL_SESSION *ss) in ssl_generate_session_id()
441 SSL_SESSION *ss = NULL; in ssl_get_new_session()
493 SSL_SESSION *lookup_sess_in_cache(SSL_CONNECTION *s, in lookup_sess_in_cache()
497 SSL_SESSION *ret = NULL; in lookup_sess_in_cache()
501 SSL_SESSION data; in lookup_sess_in_cache()
588 SSL_SESSION *ret = NULL; in ssl_get_prev_session()
719 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_add_session()
722 SSL_SESSION *s; in SSL_CTX_add_session()
806 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c) in SSL_CTX_remove_session()
811 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock()
813 SSL_SESSION *r; in remove_session_lock()
840 void SSL_SESSION_free(SSL_SESSION *ss) in SSL_SESSION_free()
874 int SSL_SESSION_up_ref(SSL_SESSION *ss) in SSL_SESSION_up_ref()
886 int SSL_set_session(SSL *s, SSL_SESSION *session) in SSL_set_session()
909 int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid, in SSL_SESSION_set1_id()
923 long SSL_SESSION_set_timeout(SSL_SESSION *s, long t) in SSL_SESSION_set_timeout()
943 long SSL_SESSION_get_timeout(const SSL_SESSION *s) in SSL_SESSION_get_timeout()
951 long SSL_SESSION_get_time(const SSL_SESSION *s) in SSL_SESSION_get_time()
957 time_t SSL_SESSION_get_time_ex(const SSL_SESSION *s) in SSL_SESSION_get_time_ex()
964 time_t SSL_SESSION_set_time_ex(SSL_SESSION *s, time_t t) in SSL_SESSION_set_time_ex()
985 long SSL_SESSION_set_time(SSL_SESSION *s, long t) in SSL_SESSION_set_time()
991 int SSL_SESSION_get_protocol_version(const SSL_SESSION *s) in SSL_SESSION_get_protocol_version()
996 int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version) in SSL_SESSION_set_protocol_version()
1002 const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s) in SSL_SESSION_get0_cipher()
1007 int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher) in SSL_SESSION_set_cipher()
1013 const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s) in SSL_SESSION_get0_hostname()
1018 int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname) in SSL_SESSION_set1_hostname()
1030 int SSL_SESSION_has_ticket(const SSL_SESSION *s) in SSL_SESSION_has_ticket()
1035 unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s) in SSL_SESSION_get_ticket_lifetime_hint()
1040 void SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick, in SSL_SESSION_get0_ticket()
1048 uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s) in SSL_SESSION_get_max_early_data()
1053 int SSL_SESSION_set_max_early_data(SSL_SESSION *s, uint32_t max_early_data) in SSL_SESSION_set_max_early_data()
1060 void SSL_SESSION_get0_alpn_selected(const SSL_SESSION *s, in SSL_SESSION_get0_alpn_selected()
1068 int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s, const unsigned char *alpn, in SSL_SESSION_set1_alpn_selected()
1087 X509 *SSL_SESSION_get0_peer(SSL_SESSION *s) in SSL_SESSION_get0_peer()
1092 EVP_PKEY *SSL_SESSION_get0_peer_rpk(SSL_SESSION *s) in SSL_SESSION_get0_peer_rpk()
1097 int SSL_SESSION_set1_id_context(SSL_SESSION *s, const unsigned char *sid_ctx, in SSL_SESSION_set1_id_context()
1111 int SSL_SESSION_is_resumable(const SSL_SESSION *s) in SSL_SESSION_is_resumable()
1205 STACK_OF(SSL_SESSION) *sk; in SSL_CTX_flush_sessions_ex()
1206 SSL_SESSION *current; in SSL_CTX_flush_sessions_ex()
1265 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s) in SSL_SESSION_list_remove()
1270 if (s->next == (SSL_SESSION *)&(ctx->session_cache_tail)) { in SSL_SESSION_list_remove()
1272 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head)) { in SSL_SESSION_list_remove()
1278 s->prev->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_remove()
1281 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head)) { in SSL_SESSION_list_remove()
1284 s->next->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_remove()
1295 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s) in SSL_SESSION_list_add()
1297 SSL_SESSION *next; in SSL_SESSION_list_add()
1305 s->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
1306 s->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
1315 s->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
1321 s->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
1329 while (next != (SSL_SESSION*)&(ctx->session_cache_tail)) { in SSL_SESSION_list_add()
1345 int (*cb) (struct ssl_st *ssl, SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb()
1350 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (SSL *ssl, SSL_SESSION *sess) { in SSL_CTX_sess_get_new_cb()
1355 void (*cb) (SSL_CTX *ctx, SSL_SESSION *sess)) in SSL_CTX_sess_set_remove_cb()
1361 SSL_SESSION *sess) { in SSL_CTX_sess_get_remove_cb()
1366 SSL_SESSION *(*cb) (SSL *ssl, in SSL_CTX_sess_set_get_cb()
1373 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (SSL *ssl, in SSL_CTX_sess_get_get_cb()
1419 int SSL_SESSION_set1_ticket_appdata(SSL_SESSION *ss, const void *data, size_t len) in SSL_SESSION_set1_ticket_appdata()
1435 int SSL_SESSION_get0_ticket_appdata(SSL_SESSION *ss, void **data, size_t *len) in SSL_SESSION_get0_ticket_appdata()
1460 IMPLEMENT_PEM_rw(SSL_SESSION, SSL_SESSION, PEM_STRING_SSL_SESSION, SSL_SESSION)