| 23 | } |
| 24 | |
| 25 | void 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 | |
| 42 | void credential_next_state(struct credential *c) |
| 43 | { |
no test coverage detected