diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-04 12:45:43 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-16 17:01:30 +0200 |
commit | 9b9405865e15da3a0a6ee0a67b59b36c5a973a8c (patch) | |
tree | ab758a8c8b5ff4ecb6d5e2d91926c0ca397d56f8 /include/git2/sys | |
parent | d99c8ca1783cfd04869e88f8707c036fc6053a05 (diff) | |
download | libgit2-9b9405865e15da3a0a6ee0a67b59b36c5a973a8c.tar.gz |
Provide a callback for certificate validation
If the certificate validation fails (or always in the case of ssh),
let the user decide whether to allow the connection.
The data structure passed to the user is the native certificate
information from the underlying implementation, namely OpenSSL or
WinHTTP.
Diffstat (limited to 'include/git2/sys')
-rw-r--r-- | include/git2/sys/transport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h index 62ac455d3..44d41c14d 100644 --- a/include/git2/sys/transport.h +++ b/include/git2/sys/transport.h @@ -37,6 +37,7 @@ struct git_transport { git_transport *transport, git_transport_message_cb progress_cb, git_transport_message_cb error_cb, + git_transport_certificate_check_cb certificate_check_cb, void *payload); /* Connect the transport to the remote repository, using the given |