Lines Matching refs:share
610 struct wssl_x509_share *share = p; in wssl_x509_share_free() local
615 if(share->store) { in wssl_x509_share_free()
616 wolfSSL_X509_STORE_free(share->store); in wssl_x509_share_free()
618 free(share->CAfile); in wssl_x509_share_free()
619 free(share); in wssl_x509_share_free()
652 struct wssl_x509_share *share; in get_cached_x509_store() local
656 share = multi ? Curl_hash_pick(&multi->proto_hash, in get_cached_x509_store()
659 if(share && share->store && in get_cached_x509_store()
660 !cached_x509_store_expired(data, share) && in get_cached_x509_store()
661 !cached_x509_store_different(cf, share)) { in get_cached_x509_store()
662 store = share->store; in get_cached_x509_store()
674 struct wssl_x509_share *share; in set_cached_x509_store() local
679 share = Curl_hash_pick(&multi->proto_hash, in set_cached_x509_store()
683 if(!share) { in set_cached_x509_store()
684 share = calloc(1, sizeof(*share)); in set_cached_x509_store()
685 if(!share) in set_cached_x509_store()
690 share, wssl_x509_share_free)) { in set_cached_x509_store()
691 free(share); in set_cached_x509_store()
707 if(share->store) { in set_cached_x509_store()
708 wolfSSL_X509_STORE_free(share->store); in set_cached_x509_store()
709 free(share->CAfile); in set_cached_x509_store()
712 share->time = Curl_now(); in set_cached_x509_store()
713 share->store = store; in set_cached_x509_store()
714 share->CAfile = CAfile; in set_cached_x509_store()