diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-12 20:40:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-12 20:40:32 +0100 |
| commit | a09bbf5f06a9ed2f5011999c0a6eef78b9e1ca56 (patch) | |
| tree | 9b09a156a0e07d343c3676f7c38975ebef6f01b5 /src/certificates.h | |
| parent | 6cac3a738e897fcc326ba70564f02c8dfa2ef900 (diff) | |
Rename a couple of Certificate methods and add accessors for organization and organizational unit name.
Diffstat (limited to 'src/certificates.h')
| -rw-r--r-- | src/certificates.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/certificates.h b/src/certificates.h index 0cc52396..2ece6f78 100644 --- a/src/certificates.h +++ b/src/certificates.h @@ -59,10 +59,14 @@ public: Certificate& operator= (Certificate const &); std::string certificate (bool with_begin_end = false) const; - std::string issuer () const; std::string serial () const; + + std::string issuer () const; + std::string subject () const; - std::string common_name () const; + std::string subject_common_name () const; + std::string subject_organization_name () const; + std::string subject_organizational_unit_name () const; X509* x509 () const { return _certificate; |
