THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
833B

  1. #ifndef CREDENTIAL_H
  2. #define CREDENTIAL_H
  3. #include "string-list.h"
  4. struct credential {
  5. struct string_list helpers;
  6. unsigned approved:1,
  7. configured:1,
  8. quit:1,
  9. use_http_path:1;
  10. char *username;
  11. char *password;
  12. char *protocol;
  13. char *host;
  14. char *path;
  15. };
  16. #define CREDENTIAL_INIT { STRING_LIST_INIT_DUP }
  17. void credential_init(struct credential *);
  18. void credential_clear(struct credential *);
  19. void credential_fill(struct credential *);
  20. void credential_approve(struct credential *);
  21. void credential_reject(struct credential *);
  22. int credential_read(struct credential *, FILE *);
  23. void credential_write(const struct credential *, FILE *);
  24. void credential_from_url(struct credential *, const char *url);
  25. int credential_match(const struct credential *have,
  26. const struct credential *want);
  27. #endif /* CREDENTIAL_H */