#ifndef POPPROXY_SSL_H
#define POPPROXY_SSL_H
-#include <gnet.h>
#include "nethook.h"
+#include "hcconn.h"
-net_hook_t* ssl_hook_new (GConn*, char*);
+struct ssl_data
+{
+ char *server;
+ gnutls_session_t session;
+ GString *buffer;
+ gboolean handshaking;
+};
+
+net_hook_t* ssl_hook_new (HCConn*, char*, char *);
void ssl_destroy (net_hook_t*);
+net_hook_t * ssl_server_hook_new (net_hook_t *, char *, char *);
+
#endif