Lines Matching full:ssl_session
146 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s);
147 static void SSL_SESSION_list_add(SSL_CTX *ctx,SSL_SESSION *s);
148 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck);
150 SSL_SESSION *SSL_get_session(const SSL *ssl)
156 SSL_SESSION *SSL_get1_session(SSL *ssl)
159 SSL_SESSION *sess;
178 int SSL_SESSION_set_ex_data(SSL_SESSION *s, int idx, void *arg)
183 void *SSL_SESSION_get_ex_data(const SSL_SESSION *s, int idx)
188 SSL_SESSION *SSL_SESSION_new(void)
190 SSL_SESSION *ss;
192 ss=(SSL_SESSION *)OPENSSL_malloc(sizeof(SSL_SESSION));
198 memset(ss,0,sizeof(SSL_SESSION));
227 const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, unsigned int *len)
234 unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s)
282 SSL_SESSION *ss=NULL;
451 /* ssl_get_prev attempts to find an SSL_SESSION to be used to resume this
475 SSL_SESSION *ret=NULL;
511 SSL_SESSION data;
640 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *c)
643 SSL_SESSION *s;
663 * (we cannot handle two SSL_SESSION structures with identical
705 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *c)
710 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck)
712 SSL_SESSION *r;
740 void SSL_SESSION_free(SSL_SESSION *ss)
749 REF_PRINT("SSL_SESSION",ss);
792 int SSL_set_session(SSL *s, SSL_SESSION *session)
853 long SSL_SESSION_set_timeout(SSL_SESSION *s, long t)
860 long SSL_SESSION_get_timeout(const SSL_SESSION *s)
866 long SSL_SESSION_get_time(const SSL_SESSION *s)
872 long SSL_SESSION_set_time(SSL_SESSION *s, long t)
879 X509 *SSL_SESSION_get0_peer(SSL_SESSION *s)
884 int SSL_SESSION_set1_id_context(SSL_SESSION *s,const unsigned char *sid_ctx,
972 LHASH_OF(SSL_SESSION) *cache;
975 static void timeout_doall_arg(SSL_SESSION *s, TIMEOUT_PARAM *p)
990 static IMPLEMENT_LHASH_DOALL_ARG_FN(timeout, SSL_SESSION, TIMEOUT_PARAM)
1002 i=CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load;
1003 CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load=0;
1006 CHECKED_LHASH_OF(SSL_SESSION, tp.cache)->down_load=i;
1024 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *s)
1028 if (s->next == (SSL_SESSION *)&(ctx->session_cache_tail))
1030 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head))
1038 s->prev->next=(SSL_SESSION *)&(ctx->session_cache_tail);
1043 if (s->prev == (SSL_SESSION *)&(ctx->session_cache_head))
1046 s->next->prev=(SSL_SESSION *)&(ctx->session_cache_head);
1057 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *s)
1066 s->prev=(SSL_SESSION *)&(ctx->session_cache_head);
1067 s->next=(SSL_SESSION *)&(ctx->session_cache_tail);
1073 s->prev=(SSL_SESSION *)&(ctx->session_cache_head);
1079 int (*cb)(struct ssl_st *ssl,SSL_SESSION *sess))
1084 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *sess)
1090 void (*cb)(SSL_CTX *ctx,SSL_SESSION *sess))
1095 void (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx))(SSL_CTX * ctx,SSL_SESSION *sess)
1101 SSL_SESSION *(*cb)(struct ssl_st *ssl,
1107 SSL_SESSION * (*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(SSL *ssl,
1166 IMPLEMENT_PEM_rw(SSL_SESSION, SSL_SESSION, PEM_STRING_SSL_SESSION, SSL_SESSION)