diff options
author | June McEnroe <june@causal.agency> | 2021-10-05 22:34:58 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-10-05 22:34:58 -0400 |
commit | 703ddf1c05401250bc106eac5fcc9210b5bd67d3 (patch) | |
tree | 09ea78463215d76d8317828e4270f535159c033f /bounce.h | |
parent | Delete local-path socket like normal (diff) | |
download | pounce-703ddf1c05401250bc106eac5fcc9210b5bd67d3.tar.gz pounce-703ddf1c05401250bc106eac5fcc9210b5bd67d3.zip |
Load and reload local certificates like normal
Diffstat (limited to 'bounce.h')
-rw-r--r-- | bounce.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/bounce.h b/bounce.h index 4318410..295a448 100644 --- a/bounce.h +++ b/bounce.h @@ -183,7 +183,9 @@ void ringInfo(void); int ringSave(FILE *file); void ringLoad(FILE *file); -void localConfig(FILE *cert, FILE *priv, FILE *ca, bool require); +int localConfig( + const char *cert, const char *priv, const char *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); int localAccept(struct tls **tls, int bind); @@ -247,14 +249,6 @@ void stateSync(struct Client *client); const char *stateNick(void); const char *stateEcho(void); -struct Cert { - int parent; - int target; - char name[NAME_MAX]; -}; -int certOpen(struct Cert *cert, const char *path); -FILE *certFile(const struct Cert *cert); - const char *configPath(const char **dirs, const char *path); const char *dataPath(const char **dirs, const char *path); FILE *configOpen(const char *path, const char *mode); |