diff options
| author | Sven Strickroth <email@cs-ware.de> | 2014-09-18 12:23:07 +0200 |
|---|---|---|
| committer | Sven Strickroth <email@cs-ware.de> | 2014-09-22 16:27:52 +0200 |
| commit | e6e834a1299eb963c69839d0a3e8eb2e33f15640 (patch) | |
| tree | bd34356ef55700f44978161c65c9278d373a315d /include/git2 | |
| parent | 14556cbff7d8728d1dfed3b6decd097c87132387 (diff) | |
| download | libgit2-e6e834a1299eb963c69839d0a3e8eb2e33f15640.tar.gz | |
Provide host name to certificate_check_cb
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/types.h b/include/git2/types.h index 7ee7cc344..2cc240ed7 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -287,9 +287,10 @@ typedef struct { * @param len The size of the certificate or host info * @param valid Whether the libgit2 checks (OpenSSL or WinHTTP) think * this certificate is valid + * @param host Hostname of the host libgit2 connected to * @param payload Payload provided by the caller */ -typedef int (*git_transport_certificate_check_cb)(git_cert *cert, int valid, void *payload); +typedef int (*git_transport_certificate_check_cb)(git_cert *cert, int valid, const char *host, void *payload); /** * Opaque structure representing a submodule. |
