msysGit-based Git for Windows 1.x was superseded by Git for Windows 2.x
[git/mingw/4msysgit.git] / credential.h
blob0c3e85e8e4232ad9298372efebf7696a77dc94b1
1 #ifndef CREDENTIAL_H
2 #define CREDENTIAL_H
4 #include "string-list.h"
6 struct credential {
7 struct string_list helpers;
8 unsigned approved:1,
9 configured:1,
10 use_http_path:1;
12 char *username;
13 char *password;
14 char *protocol;
15 char *host;
16 char *path;
19 #define CREDENTIAL_INIT { STRING_LIST_INIT_DUP }
21 void credential_init(struct credential *);
22 void credential_clear(struct credential *);
24 void credential_fill(struct credential *);
25 void credential_approve(struct credential *);
26 void credential_reject(struct credential *);
28 int credential_read(struct credential *, FILE *);
29 void credential_write(const struct credential *, FILE *);
30 void credential_from_url(struct credential *, const char *url);
31 int credential_match(const struct credential *have,
32 const struct credential *want);
34 #endif /* CREDENTIAL_H */