aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-24 09:50:30 +0000
committerOmar Polo <op@omarpolo.com>2023-06-24 09:50:30 +0000
commite50f85adcb432192b35cf7b878c9104d697ad1a3 (patch)
tree6e7ec9c2ad29b0721d8860be48732af5ec51dabb /ge.c
parenta0a42860d214974f2706d2a47203af9bc884f512 (diff)
load the certs per listening address
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ge.c b/ge.c
index 4978c2c..708bb3b 100644
--- a/ge.c
+++ b/ge.c
@@ -213,6 +213,9 @@ serve(struct conf *conf, const char *host, int port, const char *dir)
event_set(&addr->evsock, addr->sock, EV_READ|EV_PERSIST,
do_accept, addr);
+ if ((addr->ctx = tls_server()) == NULL)
+ fatal("tls_server failure");
+
TAILQ_INSERT_HEAD(&conf->addrs, addr, addrs);
acp = xcalloc(1, sizeof(*acp));