diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-17 15:04:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-17 15:04:11 +0100 |
| commit | a0c90120cb62cfbaf32eb32a7cb09891cb7c539a (patch) | |
| tree | 5d4207e79953610e42c9a61ad1fb4a6a6a33e3db /src/certificates.h | |
| parent | 194f38bccf78e51de0a35367590c2133bb093020 (diff) | |
Add verify() to CertificateChain.
Diffstat (limited to 'src/certificates.h')
| -rw-r--r-- | src/certificates.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/certificates.h b/src/certificates.h index 96a8cbb7..5a2b9324 100644 --- a/src/certificates.h +++ b/src/certificates.h @@ -65,6 +65,10 @@ public: std::string subject () const; std::string common_name () const; + X509* x509 () const { + return _certificate; + } + RSA* public_key () const; std::string thumbprint () const; @@ -95,6 +99,8 @@ public: std::list<boost::shared_ptr<Certificate> > leaf_to_root () const; + bool verify () const; + private: friend class ::certificates; std::list<boost::shared_ptr<Certificate> > _certificates; |
