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/errors.h | |
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/errors.h')
-rw-r--r-- | include/git2/errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h index b91560631..2ba9924f5 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -42,6 +42,7 @@ typedef enum { GIT_ELOCKED = -14, /**< Lock file prevented operation */ GIT_EMODIFIED = -15, /**< Reference value does not match expected */ GIT_EAUTH = -16, /**< Authentication error */ + GIT_ECERTIFICATE = -17, /**< Server certificate is invalid */ GIT_PASSTHROUGH = -30, /**< Internal only */ GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */ |