diff options
author | madmaxoft <github@xoft.cz> | 2014-04-27 22:27:53 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-27 22:27:53 +0200 |
commit | 0bdc49221b325feb3a09988737559361fe916be2 (patch) | |
tree | 4d534326cc07ce4898bb74cfe7a3275c7bdc931e /src/PolarSSL++/X509Cert.h | |
parent | cSocket creates the socket in Connect if no socket is present yet. (diff) | |
download | cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar.gz cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar.bz2 cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar.lz cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar.xz cuberite-0bdc49221b325feb3a09988737559361fe916be2.tar.zst cuberite-0bdc49221b325feb3a09988737559361fe916be2.zip |
Diffstat (limited to 'src/PolarSSL++/X509Cert.h')
-rw-r--r-- | src/PolarSSL++/X509Cert.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/PolarSSL++/X509Cert.h b/src/PolarSSL++/X509Cert.h index 5ef19c324..991617d24 100644 --- a/src/PolarSSL++/X509Cert.h +++ b/src/PolarSSL++/X509Cert.h @@ -17,6 +17,8 @@ class cX509Cert { + friend class cSslContext; + public: cX509Cert(void); ~cX509Cert(void); @@ -25,13 +27,15 @@ public: Returns 0 on succes, or PolarSSL error code on failure. */ int Parse(const void * a_CertContents, size_t a_Size); - /** Returns the internal cert ptr. Only use in PolarSSL API calls. */ - OBSOLETE x509_crt * Get(void) { return &m_Cert; } - protected: x509_crt m_Cert; + + /** Returns the internal cert ptr. Only use in PolarSSL API calls. */ + x509_crt * GetInternal(void) { return &m_Cert; } } ; +typedef SharedPtr<cX509Cert> cX509CertPtr; + |