Gives access to X.509 certificate underlying structure.
This commit is contained in:
parent
ee62dcb0a6
commit
1da9117fa5
@ -82,6 +82,12 @@ X509Certificate_GnuTLS::~X509Certificate_GnuTLS()
|
||||
}
|
||||
|
||||
|
||||
void* X509Certificate_GnuTLS::getInternalData()
|
||||
{
|
||||
return &m_data->cert;
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
ref <X509Certificate> X509Certificate::import(utility::inputStream& is)
|
||||
{
|
||||
|
@ -151,6 +151,12 @@ X509Certificate_OpenSSL::~X509Certificate_OpenSSL()
|
||||
}
|
||||
|
||||
|
||||
void* X509Certificate_OpenSSL::getInternalData()
|
||||
{
|
||||
return &m_data->cert;
|
||||
}
|
||||
|
||||
|
||||
// static
|
||||
ref <X509Certificate> X509Certificate_OpenSSL::importInternal(X509* cert)
|
||||
{
|
||||
|
@ -65,6 +65,13 @@ public:
|
||||
* false otherwise
|
||||
*/
|
||||
virtual bool equals(ref <const certificate> other) const = 0;
|
||||
|
||||
/** Returns a pointer to internal binary data for this certificate.
|
||||
* The actual type of data depends on the library used for TLS support.
|
||||
*
|
||||
* @return pointer to underlying data
|
||||
*/
|
||||
virtual void* getInternalData() = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -75,6 +75,7 @@ public:
|
||||
const string getType() const;
|
||||
int getVersion() const;
|
||||
bool equals(ref <const certificate> other) const;
|
||||
void* getInternalData();
|
||||
|
||||
private:
|
||||
|
||||
|
@ -81,6 +81,7 @@ public:
|
||||
const string getType() const;
|
||||
int getVersion() const;
|
||||
bool equals(ref <const certificate> other) const;
|
||||
void* getInternalData();
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user