Lines Matching refs:session

561   if(!ssl_config->primary.cache_session || !data->state.session)  in Curl_ssl_getsessionid()
573 check = &data->state.session[i]; in Curl_ssl_getsessionid()
610 void Curl_ssl_kill_session(struct Curl_ssl_session *session) in Curl_ssl_kill_session() argument
612 if(session->sessionid) { in Curl_ssl_kill_session()
616 session->sessionid_free(session->sessionid, session->idsize); in Curl_ssl_kill_session()
618 session->sessionid = NULL; in Curl_ssl_kill_session()
619 session->sessionid_free = NULL; in Curl_ssl_kill_session()
620 session->age = 0; /* fresh */ in Curl_ssl_kill_session()
622 free_primary_ssl_config(&session->ssl_config); in Curl_ssl_kill_session()
624 Curl_safefree(session->name); in Curl_ssl_kill_session()
625 Curl_safefree(session->conn_to_host); in Curl_ssl_kill_session()
626 Curl_safefree(session->alpn); in Curl_ssl_kill_session()
638 struct Curl_ssl_session *check = &data->state.session[i]; in Curl_ssl_delsessionid()
672 if(!data->state.session) { in Curl_ssl_set_sessionid()
688 store = &data->state.session[0]; in Curl_ssl_set_sessionid()
689 oldest_age = data->state.session[0].age; /* zero if unused */ in Curl_ssl_set_sessionid()
725 data->state.session[i].sessionid; i++) { in Curl_ssl_set_sessionid()
726 if(data->state.session[i].age < oldest_age) { in Curl_ssl_set_sessionid()
727 oldest_age = data->state.session[i].age; in Curl_ssl_set_sessionid()
728 store = &data->state.session[i]; in Curl_ssl_set_sessionid()
735 store = &data->state.session[i]; /* use this slot */ in Curl_ssl_set_sessionid()
792 if(data->state.session && !SSLSESSION_SHARED(data)) { in Curl_ssl_close_all()
796 Curl_ssl_kill_session(&data->state.session[i]); in Curl_ssl_close_all()
799 Curl_safefree(data->state.session); in Curl_ssl_close_all()
853 struct Curl_ssl_session *session; in Curl_ssl_initsessions() local
855 if(data->state.session) in Curl_ssl_initsessions()
859 session = calloc(amount, sizeof(struct Curl_ssl_session)); in Curl_ssl_initsessions()
860 if(!session) in Curl_ssl_initsessions()
865 data->state.session = session; in Curl_ssl_initsessions()