diff options
author | Sunil Nimmagadda <sunil@esdenera.com> | 2017-01-09 15:30:35 +0500 |
---|---|---|
committer | Sunil Nimmagadda <sunil@esdenera.com> | 2017-01-09 15:30:35 +0500 |
commit | 44593728dbb10317a8ec0ca60e1ca7bbb8989d98 (patch) | |
tree | a68852b6a7cb9b9800abee51a2782874df02d763 /pop3e.c | |
parent | cccc2eb125674423d902d77a4abd6e30fd0ace67 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |