From e6e834a1299eb963c69839d0a3e8eb2e33f15640 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 18 Sep 2014 12:23:07 +0200 Subject: Provide host name to certificate_check_cb Signed-off-by: Sven Strickroth --- include/git2/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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. -- cgit v1.2.3