Lines Matching refs:ssl_peer_key
78 char *ssl_peer_key; /* id for peer + relevant TLS configuration */ member
213 Curl_safefree(peer->ssl_peer_key); in cf_ssl_scache_clear_peer()
231 const char *ssl_peer_key, in cf_ssl_scache_peer_init() argument
238 DEBUGASSERT(!peer->ssl_peer_key); in cf_ssl_scache_peer_init()
239 peer->ssl_peer_key = strdup(ssl_peer_key); in cf_ssl_scache_peer_init()
240 if(!peer->ssl_peer_key) in cf_ssl_scache_peer_init()
586 const char *ssl_peer_key, in cf_ssl_find_peer() argument
600 if(scache->peers[i].ssl_peer_key && in cf_ssl_find_peer()
601 strcasecompare(ssl_peer_key, scache->peers[i].ssl_peer_key) && in cf_ssl_find_peer()
610 if(!scache->peers[i].ssl_peer_key && in cf_ssl_find_peer()
616 peer_key_len = strlen(ssl_peer_key); in cf_ssl_find_peer()
620 (const unsigned char *)ssl_peer_key, in cf_ssl_find_peer()
627 scache->peers[i].ssl_peer_key = strdup(ssl_peer_key); in cf_ssl_find_peer()
628 if(!scache->peers[i].ssl_peer_key) { in cf_ssl_find_peer()
646 const char *ssl_peer_key, in cf_ssl_add_peer() argument
655 result = cf_ssl_find_peer(cf, data, scache, ssl_peer_key, &peer); in cf_ssl_add_peer()
667 if(!scache->peers[i].ssl_peer_key && !scache->peers[i].hmac_set) { in cf_ssl_add_peer()
687 result = cf_ssl_scache_peer_init(peer, ssl_peer_key, in cf_ssl_add_peer()
712 const char *ssl_peer_key, in cf_scache_peer_add_session() argument
735 result = cf_ssl_add_peer(cf, data, scache, ssl_peer_key, &peer); in cf_scache_peer_add_session()
760 ssl_peer_key, result); in cf_scache_peer_add_session()
766 ssl_peer_key, s->ietf_tls_id, s->lifetime_secs, s->alpn, in cf_scache_peer_add_session()
774 const char *ssl_peer_key, in Curl_ssl_scache_put() argument
781 result = cf_scache_peer_add_session(cf, data, scache, ssl_peer_key, s); in Curl_ssl_scache_put()
788 const char *ssl_peer_key, in Curl_ssl_scache_return() argument
794 (void)Curl_ssl_scache_put(cf, data, ssl_peer_key, s); in Curl_ssl_scache_return()
801 const char *ssl_peer_key, in Curl_ssl_scache_take() argument
815 result = cf_ssl_find_peer(cf, data, scache, ssl_peer_key, &peer); in Curl_ssl_scache_take()
831 ssl_peer_key, s->ietf_tls_id, s->lifetime_secs, s->alpn, in Curl_ssl_scache_take()
836 CURL_TRC_CF(data, cf, "[SCACHE] no cached session for %s", ssl_peer_key); in Curl_ssl_scache_take()
843 const char *ssl_peer_key, in Curl_ssl_scache_add_obj() argument
854 result = cf_ssl_add_peer(cf, data, scache, ssl_peer_key, &peer); in Curl_ssl_scache_add_obj()
871 const char *ssl_peer_key, in Curl_ssl_scache_get_obj() argument
882 result = cf_ssl_find_peer(cf, data, scache, ssl_peer_key, &peer); in Curl_ssl_scache_get_obj()
890 *sobj ? "Found" : "No", ssl_peer_key); in Curl_ssl_scache_get_obj()
896 const char *ssl_peer_key) in Curl_ssl_scache_remove_all() argument
907 result = cf_ssl_find_peer(cf, data, scache, ssl_peer_key, &peer); in Curl_ssl_scache_remove_all()