From 321bebe669a5aafc2c4ff0e9f59e60de2fa79bac Mon Sep 17 00:00:00 2001 From: bju Date: Wed, 22 Jan 2014 02:28:34 +0100 Subject: http://projects.vdr-developer.org/issues/1267: - some fixes on client side certificate validation - added SSL server side support to the plugin --- vdr-vdrmanager/select.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vdr-vdrmanager/select.h') diff --git a/vdr-vdrmanager/select.h b/vdr-vdrmanager/select.h index fbdeb02..2a7f5ba 100644 --- a/vdr-vdrmanager/select.h +++ b/vdr-vdrmanager/select.h @@ -7,7 +7,8 @@ #include #include -#include "sock.h" +#include "clientsock.h" +#include "serversock.h" #include "handler.h" struct node; @@ -17,6 +18,7 @@ private: node * clientsockets; int clientsocketcount; cVdrmanagerServerSocket * serversocket; + cVdrmanagerServerSocket * sslServersocket; cHandler * handler; struct pollfd * pollfds; bool stopped; @@ -26,13 +28,13 @@ public: cSelect(); virtual ~cSelect(); void DispatchVdrEvent(string event); - void SetServerSocket(cVdrmanagerServerSocket * sock); + void SetServerSockets(cVdrmanagerServerSocket * sock, cVdrmanagerServerSocket * sslSock); void AddClientSocket(cVdrmanagerClientSocket * sock); void RemoveClientSocket(cVdrmanagerClientSocket * sock); bool Action(); bool Stop(); private: - void CreatePollfds(); + int CreatePollfds(); cVdrmanagerClientSocket * GetClientSocket(int fd); bool Poll(); void NotifyClients(string event); -- cgit v1.2.3