Lines Matching refs:peers
93 struct Curl_ssl_scache_peer *peers; member
284 struct Curl_ssl_scache_peer *peers; in Curl_ssl_scache_create() local
288 peers = calloc(max_peers, sizeof(*peers)); in Curl_ssl_scache_create()
289 if(!peers) in Curl_ssl_scache_create()
294 free(peers); in Curl_ssl_scache_create()
300 scache->peers = peers; in Curl_ssl_scache_create()
303 scache->peers[i].max_sessions = max_sessions_per_peer; in Curl_ssl_scache_create()
304 Curl_llist_init(&scache->peers[i].sessions, in Curl_ssl_scache_create()
317 cf_ssl_scache_clear_peer(&scache->peers[i]); in Curl_ssl_scache_destroy()
319 free(scache->peers); in Curl_ssl_scache_destroy()
577 if(scache->peers[i].ssl_peer_key && in cf_ssl_find_peer()
578 strcasecompare(ssl_peer_key, scache->peers[i].ssl_peer_key) && in cf_ssl_find_peer()
579 cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) { in cf_ssl_find_peer()
581 *ppeer = &scache->peers[i]; in cf_ssl_find_peer()
587 if(!scache->peers[i].ssl_peer_key && in cf_ssl_find_peer()
588 scache->peers[i].hmac_set && in cf_ssl_find_peer()
589 cf_ssl_scache_match_auth(&scache->peers[i], conn_config)) { in cf_ssl_find_peer()
595 scache->peers[i].key_salt, in cf_ssl_find_peer()
596 sizeof(scache->peers[i].key_salt), in cf_ssl_find_peer()
602 if(!memcmp(scache->peers[i].key_hmac, my_hmac, sizeof(my_hmac))) { in cf_ssl_find_peer()
604 scache->peers[i].ssl_peer_key = strdup(ssl_peer_key); in cf_ssl_find_peer()
605 if(!scache->peers[i].ssl_peer_key) { in cf_ssl_find_peer()
609 *ppeer = &scache->peers[i]; in cf_ssl_find_peer()
644 if(!scache->peers[i].ssl_peer_key && !scache->peers[i].hmac_set) { in cf_ssl_add_peer()
645 peer = &scache->peers[i]; in cf_ssl_add_peer()
649 if(!scache->peers[i].sobj && in cf_ssl_add_peer()
650 !Curl_llist_count(&scache->peers[i].sessions)) { in cf_ssl_add_peer()
651 peer = &scache->peers[i]; in cf_ssl_add_peer()
655 if(!peer || (scache->peers[i].age < peer->age)) { in cf_ssl_add_peer()
656 peer = &scache->peers[i]; in cf_ssl_add_peer()