Lines Matching refs:SSL_SESSION

164 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *session);
165 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *session);
166 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *session, int lock);
168 UniquePtr<SSL_SESSION> ssl_session_new(const SSL_X509_METHOD *x509_method) { in ssl_session_new()
169 return MakeUnique<SSL_SESSION>(x509_method); in ssl_session_new()
192 UniquePtr<SSL_SESSION> SSL_SESSION_dup(SSL_SESSION *session, int dup_flags) { in SSL_SESSION_dup()
193 UniquePtr<SSL_SESSION> new_session = ssl_session_new(session->x509_method); in SSL_SESSION_dup()
283 void ssl_session_rebase_time(SSL *ssl, SSL_SESSION *session) { in ssl_session_rebase_time()
312 void ssl_session_renew_timeout(SSL *ssl, SSL_SESSION *session, in ssl_session_renew_timeout()
328 uint16_t ssl_session_protocol_version(const SSL_SESSION *session) { in ssl_session_protocol_version()
340 const EVP_MD *ssl_session_get_digest(const SSL_SESSION *session) { in ssl_session_get_digest()
352 UniquePtr<SSL_SESSION> session = ssl_session_new(ssl->ctx->x509_method); in ssl_get_new_session()
571 const SSL_SESSION *session) { in ssl_encrypt_ticket()
591 const SSL_SESSION *session) { in ssl_session_is_context_valid()
601 int ssl_session_is_time_valid(const SSL *ssl, const SSL_SESSION *session) { in ssl_session_is_time_valid()
618 const SSL_SESSION *session) { in ssl_session_is_resumable()
643 SSL_HANDSHAKE *hs, UniquePtr<SSL_SESSION> *out_session, in ssl_lookup_session()
652 UniquePtr<SSL_SESSION> session; in ssl_lookup_session()
657 auto cmp = [](const void *key, const SSL_SESSION *sess) -> int { in ssl_lookup_session()
711 UniquePtr<SSL_SESSION> *out_session, in ssl_get_prev_session()
717 UniquePtr<SSL_SESSION> session; in ssl_get_prev_session()
756 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *session, int lock) { in remove_session_lock()
763 SSL_SESSION *found_session = lh_SSL_SESSION_retrieve(ctx->sessions, in remove_session_lock()
786 void ssl_set_session(SSL *ssl, SSL_SESSION *session) { in ssl_set_session()
795 static void SSL_SESSION_list_remove(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_SESSION_list_remove()
800 if (session->next == (SSL_SESSION *)&ctx->session_cache_tail) { in SSL_SESSION_list_remove()
802 if (session->prev == (SSL_SESSION *)&ctx->session_cache_head) { in SSL_SESSION_list_remove()
808 session->prev->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_remove()
811 if (session->prev == (SSL_SESSION *)&ctx->session_cache_head) { in SSL_SESSION_list_remove()
814 session->next->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_remove()
823 static void SSL_SESSION_list_add(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_SESSION_list_add()
831 session->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
832 session->next = (SSL_SESSION *)&(ctx->session_cache_tail); in SSL_SESSION_list_add()
836 session->prev = (SSL_SESSION *)&(ctx->session_cache_head); in SSL_SESSION_list_add()
861 SSL_SESSION *SSL_SESSION_new(const SSL_CTX *ctx) { in SSL_SESSION_new()
865 int SSL_SESSION_up_ref(SSL_SESSION *session) { in SSL_SESSION_up_ref()
870 void SSL_SESSION_free(SSL_SESSION *session) { in SSL_SESSION_free()
880 const uint8_t *SSL_SESSION_get_id(const SSL_SESSION *session, in SSL_SESSION_get_id()
888 int SSL_SESSION_set1_id(SSL_SESSION *session, const uint8_t *sid, in SSL_SESSION_set1_id()
901 uint32_t SSL_SESSION_get_timeout(const SSL_SESSION *session) { in SSL_SESSION_get_timeout()
905 uint64_t SSL_SESSION_get_time(const SSL_SESSION *session) { in SSL_SESSION_get_time()
913 X509 *SSL_SESSION_get0_peer(const SSL_SESSION *session) { in SSL_SESSION_get0_peer()
918 SSL_SESSION_get0_peer_certificates(const SSL_SESSION *session) { in STACK_OF()
922 void SSL_SESSION_get0_signed_cert_timestamp_list(const SSL_SESSION *session, in SSL_SESSION_get0_signed_cert_timestamp_list()
934 void SSL_SESSION_get0_ocsp_response(const SSL_SESSION *session, in SSL_SESSION_get0_ocsp_response()
945 size_t SSL_SESSION_get_master_key(const SSL_SESSION *session, uint8_t *out, in SSL_SESSION_get_master_key()
958 uint64_t SSL_SESSION_set_time(SSL_SESSION *session, uint64_t time) { in SSL_SESSION_set_time()
967 uint32_t SSL_SESSION_set_timeout(SSL_SESSION *session, uint32_t timeout) { in SSL_SESSION_set_timeout()
977 const uint8_t *SSL_SESSION_get0_id_context(const SSL_SESSION *session, in SSL_SESSION_get0_id_context()
985 int SSL_SESSION_set1_id_context(SSL_SESSION *session, const uint8_t *sid_ctx, in SSL_SESSION_set1_id_context()
999 int SSL_SESSION_should_be_single_use(const SSL_SESSION *session) { in SSL_SESSION_should_be_single_use()
1003 int SSL_SESSION_is_resumable(const SSL_SESSION *session) { in SSL_SESSION_is_resumable()
1007 int SSL_SESSION_has_ticket(const SSL_SESSION *session) { in SSL_SESSION_has_ticket()
1011 void SSL_SESSION_get0_ticket(const SSL_SESSION *session, in SSL_SESSION_get0_ticket()
1019 int SSL_SESSION_set_ticket(SSL_SESSION *session, const uint8_t *ticket, in SSL_SESSION_set_ticket()
1024 uint32_t SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *session) { in SSL_SESSION_get_ticket_lifetime_hint()
1028 const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *session) { in SSL_SESSION_get0_cipher()
1032 int SSL_SESSION_has_peer_sha256(const SSL_SESSION *session) { in SSL_SESSION_has_peer_sha256()
1036 void SSL_SESSION_get0_peer_sha256(const SSL_SESSION *session, in SSL_SESSION_get0_peer_sha256()
1047 SSL_SESSION *SSL_magic_pending_session_ptr(void) { in SSL_magic_pending_session_ptr()
1048 return (SSL_SESSION *)&g_pending_session_magic; in SSL_magic_pending_session_ptr()
1051 SSL_SESSION *SSL_get_session(const SSL *ssl) { in SSL_get_session()
1068 SSL_SESSION *SSL_get1_session(SSL *ssl) { in SSL_get1_session()
1069 SSL_SESSION *ret = SSL_get_session(ssl); in SSL_get1_session()
1088 int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg) { in SSL_SESSION_set_ex_data()
1092 void *SSL_SESSION_get_ex_data(const SSL_SESSION *session, int idx) { in SSL_SESSION_get_ex_data()
1096 int SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_CTX_add_session()
1099 UniquePtr<SSL_SESSION> owned_session = UpRef(session); in SSL_CTX_add_session()
1101 SSL_SESSION *old_session; in SSL_CTX_add_session()
1140 int SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session) { in SSL_CTX_remove_session()
1144 int SSL_set_session(SSL *ssl, SSL_SESSION *session) { in SSL_set_session()
1186 LHASH_OF(SSL_SESSION) *cache;
1189 static void timeout_doall_arg(SSL_SESSION *session, void *void_param) { in timeout_doall_arg()
1220 int (*cb)(SSL *ssl, SSL_SESSION *session)) { in SSL_CTX_sess_set_new_cb()
1224 int (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx))(SSL *ssl, SSL_SESSION *session) { in SSL_CTX_sess_get_new_cb()
1229 SSL_CTX *ctx, void (*cb)(SSL_CTX *ctx, SSL_SESSION *session)) { in SSL_CTX_sess_set_remove_cb()
1234 SSL_SESSION *session) { in SSL_CTX_sess_get_remove_cb()
1239 SSL_SESSION *(*cb)(SSL *ssl, const uint8_t *id, in SSL_CTX_sess_set_get_cb()
1244 SSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx))(SSL *ssl, in SSL_CTX_sess_get_get_cb()