diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-12 21:27:24 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-12 21:27:24 +0000 |
commit | 2cef5cf42a98f8b9c8c4f1a4d4da40b389de770a (patch) | |
tree | b6b03671062692434a9d0d6bb1f2b9756b5f4bb0 /gmid.h | |
parent | 89cfcb456921ed65a812b6e960de390553ac0ae5 (diff) |
load_ca: get a buffer instead of a fd
We dup(1) the ca fd and send it to various processes, so they fail
loading it. Instead, use load_file to get a buffer with the file
content and pass that to load_ca which then loads via BIO.
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -449,7 +449,7 @@ char *absolutify_path(const char*); char *xstrdup(const char*); void *xcalloc(size_t, size_t); void gen_certificate(const char*, const char*, const char*); -X509_STORE *load_ca(int); +X509_STORE *load_ca(uint8_t *, size_t); int validate_against_ca(X509_STORE*, const uint8_t*, size_t); void ssl_error(const char *); char *ssl_pubkey_hash(const uint8_t *, size_t); |