summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-06-05 13:53:33 -0700
committerVicent Martí <tanoku@gmail.com>2012-06-05 13:53:33 -0700
commit966fbdcb8eb5839d3ca41d5b838c1cec1b393b3c (patch)
treece84c7f3ebb7e3e724fc8d56aeeb130abe0b648c /include/git2/remote.h
parenteadc0e03f12038ec9ef91fe779b7f94b3a32b80d (diff)
parent250b95b24b1a079be5825f862e42f4b99a4c3587 (diff)
downloadlibgit2-966fbdcb8eb5839d3ca41d5b838c1cec1b393b3c.tar.gz
Merge pull request #697 from carlosmn/ssl
Add HTTPS support
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 7a032dbce..5c01949d2 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