diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 17:42:52 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-10 17:42:52 +0200 |
| commit | 9b36537de4d3db38e4c45a177cc42736fba0e3b8 (patch) | |
| tree | 6f419e0db22ca2de721293a2f7fad441f2e966be /include/git2/common.h | |
| parent | 0625638f061589634df70a5c6b69818706375703 (diff) | |
| parent | 737b445a1866706f271e163427823471bee8fb95 (diff) | |
| download | libgit2-9b36537de4d3db38e4c45a177cc42736fba0e3b8.tar.gz | |
Merge pull request #2588 from swansontec/ssl-cert-path2
Add support for setting the SSL CA location
Diffstat (limited to 'include/git2/common.h')
| -rw-r--r-- | include/git2/common.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index ceb27205a..ddeaf77a2 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -138,7 +138,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; /** @@ -223,6 +224,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 |
