Lines Matching refs:sc_session
407 struct Curl_ssl_session *sc_session = NULL; in Curl_wssl_cache_session() local
436 &sc_session); in Curl_wssl_cache_session()
439 result = Curl_ssl_scache_put(cf, data, ssl_peer_key, sc_session); in Curl_wssl_cache_session()
473 struct Curl_ssl_session *sc_session = NULL; in Curl_wssl_setup_session() local
476 result = Curl_ssl_scache_take(cf, data, ssl_peer_key, &sc_session); in Curl_wssl_setup_session()
477 if(!result && sc_session && sc_session->sdata && sc_session->sdata_len) { in Curl_wssl_setup_session()
480 const unsigned char *sdata = sc_session->sdata; in Curl_wssl_setup_session()
482 (long)sc_session->sdata_len); in Curl_wssl_setup_session()
486 Curl_ssl_session_destroy(sc_session); in Curl_wssl_setup_session()
487 sc_session = NULL; in Curl_wssl_setup_session()
499 Curl_ssl_scache_return(cf, data, ssl_peer_key, sc_session); in Curl_wssl_setup_session()