summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer/HTTPServer.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 11:48:03 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 11:48:03 +0200
commit272c232efb645c9f7d75556aeb047e13b244c9ed (patch)
tree7076527ff978a8c906323ab11d905fd2ad6dceba /src/HTTPServer/HTTPServer.h
parentFixed HTTP message parsing, prepared for SSL. (diff)
downloadcuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar.gz
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar.bz2
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar.lz
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar.xz
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.tar.zst
cuberite-272c232efb645c9f7d75556aeb047e13b244c9ed.zip
Diffstat (limited to 'src/HTTPServer/HTTPServer.h')
-rw-r--r--src/HTTPServer/HTTPServer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/HTTPServer/HTTPServer.h b/src/HTTPServer/HTTPServer.h
index 8eff7d879..eb91dd5a3 100644
--- a/src/HTTPServer/HTTPServer.h
+++ b/src/HTTPServer/HTTPServer.h
@@ -12,6 +12,9 @@
#include "../OSSupport/ListenThread.h"
#include "../OSSupport/SocketThreads.h"
#include "inifile/iniFile.h"
+#include "PolarSSL++/RsaPrivateKey.h"
+#include "PolarSSL++/PublicKey.h"
+#include "PolarSSL++/X509Cert.h"
@@ -66,6 +69,7 @@ public:
protected:
friend class cHTTPConnection;
+ friend class cSslHTTPConnection;
cListenThread m_ListenThreadIPv4;
cListenThread m_ListenThreadIPv6;
@@ -78,6 +82,12 @@ protected:
/// The callbacks to call for various events
cCallbacks * m_Callbacks;
+ /** The server certificate to use for the SSL connections */
+ cX509CertPtr m_Cert;
+
+ /** The private key for m_Cert. Despite the class name, this is the PRIVATE key. */
+ cPublicKeyPtr m_CertPrivKey;
+
// cListenThread::cCallback overrides:
virtual void OnConnectionAccepted(cSocket & a_Socket) override;