summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/clientsock.h
diff options
context:
space:
mode:
authorbju <bju@maxi.fritz.box>2017-05-04 23:58:02 +0200
committerbju <bju@maxi.fritz.box>2017-05-04 23:58:02 +0200
commit049975cbda6327aae542bac5dd1acd6fe97d18a4 (patch)
tree687b5cf1191b03613d321aadf0438d28c886778b /vdr-vdrmanager/clientsock.h
parent888f87e2ac5fc9ed6e8f40141252dac302ddb688 (diff)
downloadvdr-manager-049975cbda6327aae542bac5dd1acd6fe97d18a4.tar.gz
vdr-manager-049975cbda6327aae542bac5dd1acd6fe97d18a4.tar.bz2
Feature #2496: Support certificate replacement without VDR restart
Diffstat (limited to 'vdr-vdrmanager/clientsock.h')
-rw-r--r--vdr-vdrmanager/clientsock.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr-vdrmanager/clientsock.h b/vdr-vdrmanager/clientsock.h
index 6c3fba3..c2062e6 100644
--- a/vdr-vdrmanager/clientsock.h
+++ b/vdr-vdrmanager/clientsock.h
@@ -37,14 +37,15 @@ private:
bool initCompression;
int compressionMode;
#if VDRMANAGER_USE_SSL
+ SSL_CTX * sslCtx;
SSL * ssl;
int sslReadWrite;
int sslWantsSelect;
#endif
public:
- cVdrmanagerClientSocket(const char * password, int compressionMode);
+ cVdrmanagerClientSocket(const char * password, int compressionMode, const char * certFile, const char * keyFile);
virtual ~cVdrmanagerClientSocket();
- bool Attach(int fd, SSL_CTX * sslCtx);
+ bool Attach(int fd);
bool IsLineComplete();
bool GetLine(string& line);
void Write(string line);
@@ -58,6 +59,7 @@ public:
int GetSslReadWrite();
int GetSslWantsSelect();
bool IsSSL();
+ bool LoadCerts();
#endif
bool Disconnected();
void Disconnect();