/* * Kill a single session ID entry in the cache. */ void Curl_ssl_kill_session(struct curl_ssl_session *session) { if(session->sessionid) { /* defensive check */ /* free the ID the SSL-layer specific way */ curlssl_session_free(session->sessionid); session->sessionid = NULL; session->age = 0; /* fresh */ Curl_free_ssl_config(&session->ssl_config); Curl_safefree(session->name); } }
/* * Kill a single session ID entry in the cache. */ static int Kill_Single_Session( struct curl_ssl_session *session ) { if ( session->sessionid ) { /* defensive check */ /* free the ID */ SSL_SESSION_free( session->sessionid ); session->sessionid = NULL; session->age = 0; /* fresh */ Curl_free_ssl_config( &session->ssl_config ); Curl_safefree( session->name ); session->name = NULL; /* no name */ return 0; /* ok */ } else { return 1; } }
/* * Kill a single session ID entry in the cache. */ static int kill_session(struct curl_ssl_session *session) { if(session->sessionid) { /* defensive check */ /* free the ID the SSL-layer specific way */ curlssl_session_free(session->sessionid); session->sessionid=NULL; session->age = 0; /* fresh */ Curl_free_ssl_config(&session->ssl_config); Curl_safefree(session->name); session->name = NULL; /* no name */ return 0; /* ok */ } else return 1; }