diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-10 11:28:58 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-10-10 11:28:58 -0400 |
commit | f54d8d528a5843075c6c60167d4659e393956fa3 (patch) | |
tree | cc9721fc6dc60364ccc0d742fd9c01856837635a /include/git2/types.h | |
parent | 533da4ea00703f4ad6d5518e1ce81d20261c40c0 (diff) | |
parent | db3d169c3351e31bab6cbddc7a7c29a0157f7a99 (diff) | |
download | libgit2-f54d8d528a5843075c6c60167d4659e393956fa3.tar.gz |
Merge pull request #2574 from csware/hostname-for-certificate_check_cb
Provide host name to certificate_check_cb
Diffstat (limited to 'include/git2/types.h')
-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 14b7071d2..64cdfcdda 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -290,9 +290,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. |