credential: apply helper config
[gitweb.git] / credential.h
index 8a6d162e7b477d329b23effae8f0007163f39f3d..e5042723a87543714846961667c3bb49b2c25827 100644 (file)
@@ -5,7 +5,8 @@
 
 struct credential {
        struct string_list helpers;
-       unsigned approved:1;
+       unsigned approved:1,
+                configured:1;
 
        char *username;
        char *password;
@@ -25,5 +26,7 @@ void credential_reject(struct credential *);
 
 int credential_read(struct credential *, FILE *);
 void credential_from_url(struct credential *, const char *url);
+int credential_match(const struct credential *have,
+                    const struct credential *want);
 
 #endif /* CREDENTIAL_H */