Added support for SSL when connecting to server.
[cascardo/rnetproxy.git] / popproxy.c
index eef400a..f2a7f30 100644 (file)
@@ -26,6 +26,7 @@
 #include "log.h"
 #include "nethook.h"
 #include "null.h"
+#include "ssl.h"
 
 #define CONFFILE SYSCONFDIR "/popproxy.conf"
 
@@ -38,7 +39,7 @@ void new_client (GServer* server, GConn* conn, gpointer data)
       return;
     }
   g_message ("Received connection from %s.", conn->hostname);
-  hook = null_hook_new (conn, data);
+  hook = ssl_hook_new (conn, data);
   gnet_conn_read (conn);
 }