diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-26 21:17:08 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-26 21:17:08 +0200 |
| commit | 250b95b24b1a079be5825f862e42f4b99a4c3587 (patch) | |
| tree | 5bad1f93ac395a37eaa81edc3e7e58399154e332 /include/git2/remote.h | |
| parent | 441df990b4e68459eb98c10445478d0fece30b83 (diff) | |
| download | libgit2-250b95b24b1a079be5825f862e42f4b99a4c3587.tar.gz | |
ssl: allow skipping the server certificate check
Sometimes it's useful not to perform the check. Allow it to be
configurable.
Diffstat (limited to 'include/git2/remote.h')
| -rw-r--r-- | include/git2/remote.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 865dfef04..1f36f78e9 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -229,6 +229,15 @@ GIT_EXTERN(int) git_remote_list(git_strarray *remotes_list, git_repository *repo */ GIT_EXTERN(int) git_remote_add(git_remote **out, git_repository *repo, const char *name, const char *url); +/** + * Choose whether to check the server's certificate (applies to HTTPS only) + * + * @param remote the remote to configure + * @param check whether to check the server's certificate (defaults to yes) + */ + +GIT_EXTERN(void) git_remote_check_cert(git_remote *remote, int check); + /** @} */ GIT_END_DECL #endif |
