]> git.ipfire.org Git - thirdparty/git.git/blame - credential.h
credential: apply helper config
[thirdparty/git.git] / credential.h
CommitLineData
abca927d
JK
1#ifndef CREDENTIAL_H
2#define CREDENTIAL_H
3
4#include "string-list.h"
5
6struct credential {
7 struct string_list helpers;
11825072
JK
8 unsigned approved:1,
9 configured:1;
abca927d
JK
10
11 char *username;
12 char *password;
13 char *protocol;
14 char *host;
15 char *path;
16};
17
18#define CREDENTIAL_INIT { STRING_LIST_INIT_DUP }
19
20void credential_init(struct credential *);
21void credential_clear(struct credential *);
22
23void credential_fill(struct credential *);
24void credential_approve(struct credential *);
25void credential_reject(struct credential *);
26
27int credential_read(struct credential *, FILE *);
d3e847c1 28void credential_from_url(struct credential *, const char *url);
11825072
JK
29int credential_match(const struct credential *have,
30 const struct credential *want);
abca927d
JK
31
32#endif /* CREDENTIAL_H */