diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-08-10 17:06:53 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-16 17:01:30 +0200 |
commit | ec1ce4584a6a8ec2b5b227301a918548907a2b02 (patch) | |
tree | 25099b0509bcf0f6cebcf8ad874696a4e815a0df /include/git2/types.h | |
parent | 9b9405865e15da3a0a6ee0a67b59b36c5a973a8c (diff) | |
download | libgit2-ec1ce4584a6a8ec2b5b227301a918548907a2b02.tar.gz |
http: send the DER-encoded cert to the callback
Instead of the parsed data, we can ask OpenSSL to give us the
DER-encoded version of the certificate, which the user can then parse
and validate.
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 0009a8aa5..b574d2945 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -261,9 +261,10 @@ typedef enum git_cert_t git_cert_t; * * @param type The type of certificate or host info, SSH or X.509 * @param data The data for the certificate or host info + * @param len The size of the certificate or host info * @param payload Payload provided by the caller */ -typedef int (*git_transport_certificate_check_cb)(git_cert_t type, void *data, void *payload); +typedef int (*git_transport_certificate_check_cb)(git_cert_t type, void *data, size_t len, void *payload); /** * Opaque structure representing a submodule. |