mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
ssl: ability to add raw X509 certs to the cert store
This commit is contained in:
@@ -199,6 +199,7 @@ typedef enum {
|
||||
GIT_OPT_GET_TEMPLATE_PATH,
|
||||
GIT_OPT_SET_TEMPLATE_PATH,
|
||||
GIT_OPT_SET_SSL_CERT_LOCATIONS,
|
||||
GIT_OPT_ADD_SSL_X509_CERT,
|
||||
GIT_OPT_SET_USER_AGENT,
|
||||
GIT_OPT_ENABLE_STRICT_OBJECT_CREATION,
|
||||
GIT_OPT_ENABLE_STRICT_SYMBOLIC_REF_CREATION,
|
||||
@@ -336,6 +337,12 @@ typedef enum {
|
||||
* > certificates, one per file.
|
||||
* >
|
||||
* > Either parameter may be `NULL`, but not both.
|
||||
*
|
||||
* * opts(GIT_OPT_ADD_SSL_X509_CERT, const X509 *cert)
|
||||
*
|
||||
* > Add a raw X509 certificate into the SSL certs store.
|
||||
* >
|
||||
* > - `cert` is the raw X509 cert will be added to cert store.
|
||||
*
|
||||
* * opts(GIT_OPT_SET_USER_AGENT, const char *user_agent)
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user