ssl: ability to add raw X509 certs to the cert store

This commit is contained in:
Sergey Kazmin
2024-09-06 14:59:37 +03:00
parent 403a03b3be
commit ad04bf2566
4 changed files with 38 additions and 0 deletions

View File

@@ -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)
*