From 44593728dbb10317a8ec0ca60e1ca7bbb8989d98 Mon Sep 17 00:00:00 2001 From: Sunil Nimmagadda Date: Mon, 9 Jan 2017 15:30:35 +0500 Subject: Provide an option to specify cert/key on commandline. While here, document new options and fix mandoc lint warnings. --- pop3e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pop3e.c') diff --git a/pop3e.c b/pop3e.c index 1bd8635..88e3c33 100644 --- a/pop3e.c +++ b/pop3e.c @@ -48,7 +48,7 @@ struct imsgev iev_pop3d; void *ssl_ctx; void -pop3_main(int pair[2], struct passwd *pw) +pop3_main(int pair[2], struct passwd *pw, const char *cert, const char *key) { extern struct session_tree sessions; struct event ev_sigint, ev_sigterm; @@ -73,7 +73,7 @@ pop3_main(int pair[2], struct passwd *pw) pop3_listen("pop3"); ssl_init(); - if ((ssl_ctx = ssl_setup()) == NULL) + if ((ssl_ctx = ssl_setup(cert, key)) == NULL) fatal("ssl_setup failed"); pop3_listen("pop3s"); -- cgit v1.2.3