summary refs log tree commit diff
path: root/bounce.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-05 22:34:58 -0400
committerJune McEnroe <june@causal.agency>2021-10-05 22:34:58 -0400
commit703ddf1c05401250bc106eac5fcc9210b5bd67d3 (patch)
tree09ea78463215d76d8317828e4270f535159c033f /bounce.h
parentDelete local-path socket like normal (diff)
downloadpounce-703ddf1c05401250bc106eac5fcc9210b5bd67d3.tar.gz
pounce-703ddf1c05401250bc106eac5fcc9210b5bd67d3.zip
Load and reload local certificates like normal
Diffstat (limited to 'bounce.h')
-rw-r--r--bounce.h12
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);