MCPcopy Index your code
hub / github.com/git/git / credential_clear

Function credential_clear

credential.c:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void credential_clear(struct credential *c)
26{
27 credential_clear_secrets(c);
28 free(c->protocol);
29 free(c->host);
30 free(c->path);
31 free(c->username);
32 free(c->oauth_refresh_token);
33 free(c->authtype);
34 string_list_clear(&c->helpers, 0);
35 strvec_clear(&c->wwwauth_headers);
36 strvec_clear(&c->state_headers);
37 strvec_clear(&c->state_headers_to_send);
38
39 credential_init(c);
40}
41
42void credential_next_state(struct credential *c)
43{

Callers 11

match_partial_urlFunction · 0.70
credential_from_url_1Function · 0.70
imap_open_storeFunction · 0.70
curl_append_msgs_to_imapFunction · 0.70
curl_list_imap_foldersFunction · 0.70
LLVMFuzzerTestOneInputFunction · 0.50
cmd_credentialFunction · 0.50
parse_credential_fileFunction · 0.50
cmd_credential_storeFunction · 0.50
check_expirationsFunction · 0.50
serve_one_clientFunction · 0.50

Calls 4

credential_clear_secretsFunction · 0.85
string_list_clearFunction · 0.85
strvec_clearFunction · 0.85
credential_initFunction · 0.70

Tested by

no test coverage detected