Esempio n. 1
0
/*
 * 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);
    }
}
Esempio n. 2
0
File: sslgen.c Progetto: 0w/moai-dev
/*
 * 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;
}