summaryrefslogtreecommitdiff
path: root/pop3e.c
diff options
context:
space:
mode:
authorSunil Nimmagadda <sunil@esdenera.com>2017-01-09 15:30:35 +0500
committerSunil Nimmagadda <sunil@esdenera.com>2017-01-09 15:30:35 +0500
commit44593728dbb10317a8ec0ca60e1ca7bbb8989d98 (patch)
treea68852b6a7cb9b9800abee51a2782874df02d763 /pop3e.c
parentcccc2eb125674423d902d77a4abd6e30fd0ace67 (diff)
Provide an option to specify cert/key on commandline.
While here, document new options and fix mandoc lint warnings.
Diffstat (limited to 'pop3e.c')
-rw-r--r--pop3e.c4
1 files changed, 2 insertions, 2 deletions
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");