Lines Matching refs:peers
93 struct Curl_ssl_scache_peer *peers; member
307 struct Curl_ssl_scache_peer *peers; in Curl_ssl_scache_create() local
311 peers = calloc(max_peers, sizeof(*peers)); in Curl_ssl_scache_create()
312 if(!peers) in Curl_ssl_scache_create()
317 free(peers); in Curl_ssl_scache_create()
323 scache->peers = peers; in Curl_ssl_scache_create()
326 scache->peers[i].max_sessions = max_sessions_per_peer; in Curl_ssl_scache_create()
327 Curl_llist_init(&scache->peers[i].sessions, in Curl_ssl_scache_create()
340 cf_ssl_scache_clear_peer(&scache->peers[i]); in Curl_ssl_scache_destroy()
342 free(scache->peers); in Curl_ssl_scache_destroy()
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()
602 cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) { in cf_ssl_find_peer()
604 *ppeer = &scache->peers[i]; in cf_ssl_find_peer()
610 if(!scache->peers[i].ssl_peer_key && in cf_ssl_find_peer()
611 scache->peers[i].hmac_set && in cf_ssl_find_peer()
612 cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) { in cf_ssl_find_peer()
618 scache->peers[i].key_salt, in cf_ssl_find_peer()
619 sizeof(scache->peers[i].key_salt), in cf_ssl_find_peer()
625 if(!memcmp(scache->peers[i].key_hmac, my_hmac, sizeof(my_hmac))) { 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()
632 *ppeer = &scache->peers[i]; in cf_ssl_find_peer()
667 if(!scache->peers[i].ssl_peer_key && !scache->peers[i].hmac_set) { in cf_ssl_add_peer()
668 peer = &scache->peers[i]; in cf_ssl_add_peer()
672 if(!scache->peers[i].sobj && in cf_ssl_add_peer()
673 !Curl_llist_count(&scache->peers[i].sessions)) { in cf_ssl_add_peer()
674 peer = &scache->peers[i]; in cf_ssl_add_peer()
678 if(!peer || (scache->peers[i].age < peer->age)) { in cf_ssl_add_peer()
679 peer = &scache->peers[i]; in cf_ssl_add_peer()