Lines Matching refs:sc
586 const struct gtls_shared_creds *sc) in gtls_shared_creds_expired() argument
590 timediff_t elapsed_ms = Curl_timediff(now, sc->time); in gtls_shared_creds_expired()
600 const struct gtls_shared_creds *sc) in gtls_shared_creds_different() argument
603 if(!sc->CAfile || !conn_config->CAfile) in gtls_shared_creds_different()
604 return sc->CAfile != conn_config->CAfile; in gtls_shared_creds_different()
606 return strcmp(sc->CAfile, conn_config->CAfile); in gtls_shared_creds_different()
629 struct gtls_shared_creds *sc = p; in gtls_shared_creds_hash_free() local
634 Curl_gtls_shared_creds_free(&sc); /* down reference */ in gtls_shared_creds_hash_free()
639 struct gtls_shared_creds *sc) in gtls_set_cached_creds() argument
643 DEBUGASSERT(sc); in gtls_set_cached_creds()
644 DEBUGASSERT(sc->creds); in gtls_set_cached_creds()
645 DEBUGASSERT(!sc->CAfile); in gtls_set_cached_creds()
646 DEBUGASSERT(sc->refcount == 1); in gtls_set_cached_creds()
651 sc->CAfile = strdup(conn_config->CAfile); in gtls_set_cached_creds()
652 if(!sc->CAfile) in gtls_set_cached_creds()
656 if(Curl_gtls_shared_creds_up_ref(sc)) in gtls_set_cached_creds()
662 sc, gtls_shared_creds_hash_free)) { in gtls_set_cached_creds()
663 Curl_gtls_shared_creds_free(&sc); /* down reference again */ in gtls_set_cached_creds()