diff options
Diffstat (limited to 'src/certificates.h')
| -rw-r--r-- | src/certificates.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/certificates.h b/src/certificates.h index ef2e63b4..198773f1 100644 --- a/src/certificates.h +++ b/src/certificates.h @@ -59,6 +59,9 @@ public: std::string serial () const; std::string subject () const; + /** @return RSA public key from this Certificate. Caller must not free the returned value. */ + RSA* public_key () const; + std::string thumbprint () const; private: @@ -69,6 +72,7 @@ private: static std::string get_name_part (X509_NAME *, int); X509* _certificate; + mutable RSA* _public_key; }; class CertificateChain |
