summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorWilliam Swanson <swansontec@gmail.com>2014-09-26 20:31:33 -0700
committerWilliam Swanson <swansontec@gmail.com>2014-09-30 17:26:39 -0700
commit737b445a1866706f271e163427823471bee8fb95 (patch)
tree1530893e21a1cb142aa1df1ba2f33ccb284399bb /include/git2/common.h
parentcb4a956b9c20f2b7be404983e7bd156c772f4f64 (diff)
downloadlibgit2-737b445a1866706f271e163427823471bee8fb95.tar.gz
Add support for setting the SSL CA location
This allows users to specify self-signed certificates, or to provide their own certificate stores on limited platforms such as mobile phones.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 32237efed..1363316b6 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -136,7 +136,8 @@ typedef enum {
GIT_OPT_ENABLE_CACHING,
GIT_OPT_GET_CACHED_MEMORY,
GIT_OPT_GET_TEMPLATE_PATH,
- GIT_OPT_SET_TEMPLATE_PATH
+ GIT_OPT_SET_TEMPLATE_PATH,
+ GIT_OPT_SET_SSL_CERT_LOCATIONS,
} git_libgit2_opt_t;
/**
@@ -221,6 +222,17 @@ typedef enum {
* >
* > - `path` directory of template.
*
+ * * opts(GIT_OPT_SET_SSL_CERT_LOCATIONS, const char *file, const char *path)
+ *
+ * > Set the SSL certificate-authority locations.
+ * >
+ * > - `file` is the location of a file containing several
+ * > certificates concatenated together.
+ * > - `path` is the location of a directory holding several
+ * > certificates, one per file.
+ * >
+ * > Either parameter may be `NULL`, but not both.
+ *
* @param option Option key
* @param ... value to set the option
* @return 0 on success, <0 on failure