git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob e6d6d6fa40af7e1a57d580f7a2608bc15c4fb7d0 984 bytes (raw)
name: credential.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
#ifndef CREDENTIAL_H
#define CREDENTIAL_H

#include "string-list.h"

struct credential {
	struct string_list helpers;
	unsigned approved:1,
		 configured:1,
		 quit:1,
		 use_http_path:1;

	char *username;
	char *password;
	char *protocol;
	char *host;
	char *path;
};

#define CREDENTIAL_INIT { STRING_LIST_INIT_DUP }

void credential_init(struct credential *);
void credential_clear(struct credential *);

void credential_fill(struct credential *);
void credential_approve(struct credential *);
void credential_reject(struct credential *);

int credential_read(struct credential *, FILE *);
void credential_write(const struct credential *, FILE *);
void credential_from_url(struct credential *, const char *url);
int credential_match(const struct credential *have,
		     const struct credential *want);

/*
 * Return true if feeding "url" to the credential system would trigger one
 * or more helpers.
 */
int url_has_credential_helper(const char *url);

#endif /* CREDENTIAL_H */

debug log:

solving e6d6d6fa40 ...
found e6d6d6fa40 in https://public-inbox.org/git/20190519051604.GC19434@sigill.intra.peff.net/
found 6b0cd16be2 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 6b0cd16be2b96b23ae5ce14a07a8ad130af8d5bb	credential.h

applying [1/1] https://public-inbox.org/git/20190519051604.GC19434@sigill.intra.peff.net/
diff --git a/credential.h b/credential.h
index 6b0cd16be2..e6d6d6fa40 100644

Checking patch credential.h...
Applied patch credential.h cleanly.

index at:
100644 e6d6d6fa40af7e1a57d580f7a2608bc15c4fb7d0	credential.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).