Add Certificate::subject_dn_qualifier().
[libdcp.git] / src / certificate.h
index 49fca02cdab55aa38df5dc45a03660cfb13624c9..bf11a965fc9783771a7cfef8035fd18cb459e131 100644 (file)
@@ -65,10 +65,7 @@ namespace dcp {
 class Certificate
 {
 public:
-       Certificate ()
-               : _certificate (0)
-               , _public_key (0)
-       {}
+       Certificate() {}
 
        /** Load an X509 certificate from a string
         *  @param cert String to read from
@@ -102,11 +99,15 @@ public:
         *  and with + signs escaped to \+
         */
        std::string issuer () const;
+       std::string issuer_common_name() const;
+       std::string issuer_organization_name() const;
+       std::string issuer_organizational_unit_name() const;
 
        std::string subject () const;
        std::string subject_common_name () const;
        std::string subject_organization_name () const;
        std::string subject_organizational_unit_name () const;
+       std::string subject_dn_qualifier() const;
 
        LocalTime not_before () const;
        LocalTime not_after () const;
@@ -117,6 +118,7 @@ public:
 
        /** @return RSA public key from this Certificate.  Caller must not free the returned value. */
        RSA* public_key () const;
+       std::string public_key_digest() const;
 
        /** @return thumbprint of the to-be-signed portion of this certificate */
        std::string thumbprint () const;