send-email: accept absolute path even on Windows
[git/dscho.git] / credential.h
blob788ed8e8bf04d66bf764096b2a12c6ae6de3aade
1 #ifndef CREDENTIAL_H
2 #define CREDENTIAL_H
4 struct credential {
5 char *description;
6 char *username;
7 char *password;
8 char *unique;
9 };
11 struct string_list;
13 int credential_getpass(struct credential *);
14 void credential_from_config(struct credential *);
16 int credential_fill_gently(struct credential *, const struct string_list *methods);
17 void credential_fill(struct credential *, const struct string_list *methods);
18 void credential_reject(struct credential *, const struct string_list *methods);
20 int git_default_credential_config(const char *var, const char *value);
22 #endif /* CREDENTIAL_H */