pop3e.c
changeset 43 6903f7870c4c
parent 41 0cb519e770ba
--- a/pop3e.c	Mon Jan 09 15:30:07 2017 +0500
+++ b/pop3e.c	Mon Jan 09 15:31:05 2017 +0500
@@ -48,7 +48,7 @@
 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_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");