diff options
author | bju <bju@maxi.fritz.box> | 2017-05-04 23:58:02 +0200 |
---|---|---|
committer | bju <bju@maxi.fritz.box> | 2017-05-04 23:58:02 +0200 |
commit | 049975cbda6327aae542bac5dd1acd6fe97d18a4 (patch) | |
tree | 687b5cf1191b03613d321aadf0438d28c886778b /vdr-vdrmanager/clientsock.h | |
parent | 888f87e2ac5fc9ed6e8f40141252dac302ddb688 (diff) | |
download | vdr-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.h | 6 |
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(); |