From 5e6094e437a5437ceb6b083d16995ea629a4d720 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 12 Jan 2020 18:07:54 -0500 Subject: Add option to set local client CA This is a little bit messy. Allows setting either -A or -W or both. Implements SASL EXTERNAL for clients that expect that when connecting with a client certificate. Need to test that reloading still works inside capsicum, since I suspect that rewind call may be blocked. --- bounce.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bounce.h') diff --git a/bounce.h b/bounce.h index 5bff619..a0f9160 100644 --- a/bounce.h +++ b/bounce.h @@ -127,7 +127,7 @@ void ringInfo(void); int ringSave(FILE *file); void ringLoad(FILE *file); -void localConfig(FILE *cert, FILE *priv); +void localConfig(FILE *cert, FILE *priv, FILE *ca, bool require); size_t localBind(int fds[], size_t cap, const char *host, const char *port); size_t localUnix(int fds[], size_t cap, const char *path); struct tls *localAccept(int *fd, int bind); @@ -139,6 +139,7 @@ void serverSend(const char *ptr, size_t len); void serverFormat(const char *format, ...) __attribute__((format(printf, 1, 2))); +extern bool clientCA; extern char *clientPass; extern char *clientAway; struct Client *clientAlloc(struct tls *tls); -- cgit 1.4.1