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