diff options
author | madmaxoft <github@xoft.cz> | 2014-01-25 19:19:37 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-25 19:19:37 +0100 |
commit | 8f1890e877467bd458910e4b7e5d8dcaceb25854 (patch) | |
tree | 52c1423f766626dd94bfb948e1f14c480c529313 /Tools/ProtoProxy/Server.h | |
parent | Added RSA encryption to crypto wrappers. (diff) | |
download | cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar.gz cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar.bz2 cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar.lz cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar.xz cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.tar.zst cuberite-8f1890e877467bd458910e4b7e5d8dcaceb25854.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/ProtoProxy/Server.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/ProtoProxy/Server.h b/Tools/ProtoProxy/Server.h index e69dbb5e0..85f817a4d 100644 --- a/Tools/ProtoProxy/Server.h +++ b/Tools/ProtoProxy/Server.h @@ -17,8 +17,8 @@ class cServer { SOCKET m_ListenSocket; - RSA::PrivateKey m_PrivateKey; - RSA::PublicKey m_PublicKey; + cRSAPrivateKey m_PrivateKey; + AString m_PublicKeyDER; short m_ConnectPort; public: @@ -27,8 +27,8 @@ public: int Init(short a_ListenPort, short a_ConnectPort); void Run(void); - RSA::PrivateKey & GetPrivateKey(void) { return m_PrivateKey; } - RSA::PublicKey & GetPublicKey (void) { return m_PublicKey; } + cRSAPrivateKey & GetPrivateKey(void) { return m_PrivateKey; } + const AString & GetPublicKeyDER (void) { return m_PublicKeyDER; } short GetConnectPort(void) const { return m_ConnectPort; } } ; |