diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-09 20:07:58 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-24 18:26:36 +0300 |
commit | cdee630f6f8fc170f21dbcc88248a18a466722a1 (patch) | |
tree | 6adb8c6adacc9a90408720248edc18e8b4ad43ba /include | |
parent | 8762d721f4cff582356a1591e220463c9ca1d389 (diff) |
curl: extract certificate information
The information is exposed by curl for some crypto libraries in the form
of name:content strings. We can't do much more than return this
information.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/types.h b/include/git2/types.h index d1e7cd92c..c97e5ba61 100644 --- a/include/git2/types.h +++ b/include/git2/types.h @@ -284,6 +284,11 @@ typedef int (*git_transport_message_cb)(const char *str, int len, void *payload) * Type of host certificate structure that is passed to the check callback */ typedef enum git_cert_t { + /** + * No information about the certificate is available. This may + * happen when using curl. + */ + GIT_CERT_NONE, /** * The `data` argument to the callback will be a pointer to * the DER-encoded data. @@ -294,6 +299,13 @@ typedef enum git_cert_t { * `git_cert_hostkey` structure. */ GIT_CERT_HOSTKEY_LIBSSH2, + /** + * The `data` argument to the callback will be a pointer to a + * `git_strarray` with `name:content` strings containing + * information about the certificate. This is used when using + * curl. + */ + GIT_CERT_STRARRAY, } git_cert_t; /** |