Home | History | Annotate | Download | only in vtls

Lines Matching full:session

78 /* convenience macro to check if this handle is using a shared SSL session */
333 * Check if there's a session ID for the given connection in the cache, and if
349 /* session ID re-use is disabled */
361 check = &data->state.session[i];
363 /* not session ID means blank entry */
368 /* yes, we have a session ID! */
387 * Kill a single session ID entry in the cache.
389 void Curl_ssl_kill_session(struct curl_ssl_session *session)
391 if(session->sessionid) {
395 curlssl_session_free(session->sessionid);
397 session->sessionid = NULL;
398 session->age = 0; /* fresh */
400 Curl_free_ssl_config(&session->ssl_config);
402 Curl_safefree(session->name);
407 * Delete the given session ID from the cache.
418 struct curl_ssl_session *check = &data->state.session[i];
431 * Store session id in the session cache. The ID passed on to this function
433 * layer. Curl_XXXX_session_free() will be called to free/kill the session ID
442 struct curl_ssl_session *store = &data->state.session[0];
443 long oldest_age=data->state.session[0].age; /* zero if unused */
447 /* Even though session ID re-use might be disabled, that only disables USING
455 /* Now we should add the session ID and the host name to the cache, (remove
458 /* If using shared SSL session, lock! */
469 data->state.session[i].sessionid; i++) {
470 if(data->state.session[i].age < oldest_age) {
471 oldest_age = data->state.session[i].age;
472 store = &data->state.session[i];
479 store = &data->state.session[i]; /* use this slot */
481 /* now init the session struct wisely */
508 /* kill the session ID cache if not shared */
509 if(data->state.session && !SSLSESSION_SHARED(data)) {
512 Curl_ssl_kill_session(&data->state.session[i]);
515 Curl_safefree(data->state.session);
562 * This sets up a session ID cache to the specified size. Make sure this code
567 struct curl_ssl_session *session;
569 if(data->state.session)
573 session = calloc(amount, sizeof(struct curl_ssl_session));
574 if(!session)
579 data->state.session = session;