Added a hook on top of the SSL layer, allowing to filter data.
[cascardo/rnetproxy.git] / popproxy.c
index fb1a8c1..23b17ba 100644 (file)
@@ -28,6 +28,7 @@
 #include "nethook.h"
 #include "null.h"
 #include "ssl.h"
+#include "pop.h"
 
 #define CONFFILE SYSCONFDIR "/popproxy.conf"
 
@@ -41,6 +42,7 @@ void new_client (GServer* server, GConn* conn, gpointer data)
     }
   g_message ("Received connection from %s.", conn->hostname);
   hook = ssl_hook_new (conn, data);
+  pop_hook_new (hook);
   gnet_conn_read (conn);
 }