aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-12 21:27:24 +0000
committerOmar Polo <op@omarpolo.com>2023-06-12 21:27:24 +0000
commit2cef5cf42a98f8b9c8c4f1a4d4da40b389de770a (patch)
treeb6b03671062692434a9d0d6bb1f2b9756b5f4bb0 /gmid.h
parent89cfcb456921ed65a812b6e960de390553ac0ae5 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.h b/gmid.h
index c68ab92..9a4f1f1 100644
--- a/gmid.h
+++ b/gmid.h
@@ -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);