added OpenSSL handler
[NeonServV5.git] / src / ClientSocket.h
index 39d7bb0ca6dbeb7dbe69d93c43ac5bf31ef33ced..1ef009c148471a8d3395c98a52a3c163ee962a78 100644 (file)
 #define SOCKET_FLAG_PREFERRED 0x08 /* prefered bot to send datas to the IRC World (NOTICE's WHO's etc pp) */
 #define SOCKET_FLAG_USE_QUEUE 0x10
 #define SOCKET_FLAG_RECONNECT 0x20
+#define SOCKET_FLAG_SSL       0x40
 
 #define BUF_SIZ 512
 
 struct UserNode;
 struct trigger_cache;
+struct SSLConnection;
 
 struct ClientSocket {
     int sock;
@@ -46,6 +48,7 @@ struct ClientSocket {
     unsigned long traffic_in;
     unsigned long traffic_out;
     time_t connection_time;
+    struct SSLConnection *sslconn;
     
     struct BotQueue *queue;