Lines Matching refs:cred
749 backend->cred = (struct Curl_schannel_cred *) in schannel_acquire_credential_handle()
751 if(!backend->cred) { in schannel_acquire_credential_handle()
763 backend->cred->refcount = 1; in schannel_acquire_credential_handle()
769 backend->cred->client_cert_store = client_cert_store; in schannel_acquire_credential_handle()
807 &backend->cred->cred_handle, in schannel_acquire_credential_handle()
808 &backend->cred->time_stamp); in schannel_acquire_credential_handle()
847 &backend->cred->cred_handle, in schannel_acquire_credential_handle()
848 &backend->cred->time_stamp); in schannel_acquire_credential_handle()
860 Curl_safefree(backend->cred); in schannel_acquire_credential_handle()
953 backend->cred = NULL; in schannel_connect_step1()
960 backend->cred = old_cred; in schannel_connect_step1()
964 backend->cred->refcount++; in schannel_connect_step1()
967 backend->cred->refcount)); in schannel_connect_step1()
972 if(!backend->cred) { in schannel_connect_step1()
983 backend->cred->sni_hostname = curlx_convert_UTF8_to_tchar(snihost); in schannel_connect_step1()
984 if(!backend->cred->sni_hostname) in schannel_connect_step1()
1075 &backend->cred->cred_handle, NULL, backend->cred->sni_hostname, in schannel_connect_step1()
1168 if(!backend->cred || !backend->ctxt) in schannel_connect_step2()
1266 &backend->cred->cred_handle, &backend->ctxt->ctxt_handle, in schannel_connect_step2()
1267 backend->cred->sni_hostname, backend->req_flags, in schannel_connect_step2()
1507 struct Curl_schannel_cred *cred = sessionid; in schannel_session_free() local
1510 if(cred) { in schannel_session_free()
1511 cred->refcount--; in schannel_session_free()
1512 if(cred->refcount == 0) { in schannel_session_free()
1513 Curl_pSecFn->FreeCredentialsHandle(&cred->cred_handle); in schannel_session_free()
1514 curlx_unicodefree(cred->sni_hostname); in schannel_session_free()
1516 if(cred->client_cert_store) { in schannel_session_free()
1517 CertCloseStore(cred->client_cert_store, 0); in schannel_session_free()
1518 cred->client_cert_store = NULL; in schannel_session_free()
1521 Curl_safefree(cred); in schannel_session_free()
1547 if(!backend->cred) in schannel_connect_step3()
1604 backend->cred->refcount++; in schannel_connect_step3()
1606 backend->cred, in schannel_connect_step3()
2324 if(backend->cred && backend->ctxt && !backend->sent_shutdown) { in schannel_shutdown()
2351 &backend->cred->cred_handle, in schannel_shutdown()
2353 backend->cred->sni_hostname, in schannel_shutdown()
2402 if(backend->cred && backend->ctxt && in schannel_shutdown()
2447 if(backend->cred) { in schannel_close()
2449 schannel_session_free(backend->cred, 0); in schannel_close()
2451 backend->cred = NULL; in schannel_close()