diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-24 20:49:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-24 20:49:18 +0100 |
| commit | a3aa0f8ee813656b255c24d23f4570ef56e7fca2 (patch) | |
| tree | 0594bd048c3ac147b30169eb2c76c16a1306d952 /src/certificates.h | |
| parent | fa507ea166b8339bcf029ca73a487e7553fb5eb6 (diff) | |
Actually encrypt AuthenticatedPrivate section of KDM.
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 |
