summaryrefslogtreecommitdiffstats
path: root/src/PolarSSL++/RsaPrivateKey.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 00:28:27 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 00:28:27 +0200
commit47feb91e57f83c81722188ec3025c3109758dd33 (patch)
treec3b163b07cdbbea2e33fcf6bd1e2c844fed0012b /src/PolarSSL++/RsaPrivateKey.h
parentAdded cBufferedSslContext implementation. (diff)
downloadcuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar.gz
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar.bz2
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar.lz
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar.xz
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.tar.zst
cuberite-47feb91e57f83c81722188ec3025c3109758dd33.zip
Diffstat (limited to 'src/PolarSSL++/RsaPrivateKey.h')
-rw-r--r--src/PolarSSL++/RsaPrivateKey.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/PolarSSL++/RsaPrivateKey.h b/src/PolarSSL++/RsaPrivateKey.h
index ffacde11b..4d03f27df 100644
--- a/src/PolarSSL++/RsaPrivateKey.h
+++ b/src/PolarSSL++/RsaPrivateKey.h
@@ -19,6 +19,8 @@
/** Encapsulates an RSA private key used in PKI cryptography */
class cRsaPrivateKey
{
+ friend class cSslContext;
+
public:
/** Creates a new empty object, the key is not assigned */
cRsaPrivateKey(void);
@@ -51,8 +53,14 @@ protected:
/** The random generator used for generating the key and encryption / decryption */
cCtrDrbgContext m_CtrDrbg;
+
+
+ /** Returns the internal context ptr. Only use in PolarSSL API calls. */
+ rsa_context * GetInternal(void) { return &m_Rsa; }
} ;
+typedef SharedPtr<cRsaPrivateKey> cRsaPrivateKeyPtr;
+