diff options
author | madmaxoft <github@xoft.cz> | 2014-04-29 11:04:54 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-29 11:04:54 +0200 |
commit | ec33bbe2949010e1ed377b9dcc1ace56a0126bfe (patch) | |
tree | d6414c36a96b1ab361337ff1636b67f0b5b5a95f /src/PolarSSL++/CtrDrbgContext.h | |
parent | Merged branch 'master' into SslWrappers. (diff) | |
download | cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.gz cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.bz2 cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.lz cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.xz cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.zst cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.zip |
Diffstat (limited to 'src/PolarSSL++/CtrDrbgContext.h')
-rw-r--r-- | src/PolarSSL++/CtrDrbgContext.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PolarSSL++/CtrDrbgContext.h b/src/PolarSSL++/CtrDrbgContext.h index e9a1e17e2..817222a53 100644 --- a/src/PolarSSL++/CtrDrbgContext.h +++ b/src/PolarSSL++/CtrDrbgContext.h @@ -25,6 +25,7 @@ class cEntropyContext; class cCtrDrbgContext { friend class cSslContext; + friend class cRsaPrivateKey; public: /** Constructs the context with a new entropy context. */ @@ -41,9 +42,6 @@ public: /** Returns true if the object is valid (has been initialized properly) */ bool IsValid(void) const { return m_IsValid; } - /** Returns the internal context ptr. Only use in PolarSSL API calls. */ - OBSOLETE ctr_drbg_context * Get(void) { return &m_CtrDrbg; } - protected: /** The entropy source used for generating the random */ SharedPtr<cEntropyContext> m_EntropyContext; @@ -53,6 +51,10 @@ protected: /** Set to true if the object is valid (has been initialized properly) */ bool m_IsValid; + + + /** Returns the internal context ptr. Only use in PolarSSL API calls. */ + ctr_drbg_context * GetInternal(void) { return &m_CtrDrbg; } } ; |