X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcertificate.h;h=4be673cc88f82e468f4f1b41027db6b1de122a05;hb=f447a804d6e13306a0b959c7ee445c8a84fe1a84;hp=8237c739e726200ad74c58ec3177c1df72984337;hpb=14ce6b8765f47db4f2cc4ab4d2eff64486792e62;p=libdcp.git diff --git a/src/certificate.h b/src/certificate.h index 8237c739..4be673cc 100644 --- a/src/certificate.h +++ b/src/certificate.h @@ -44,8 +44,6 @@ #include #include -class certificates; - namespace xmlpp { class Element; } @@ -83,6 +81,8 @@ public: std::string subject_common_name () const; std::string subject_organization_name () const; std::string subject_organizational_unit_name () const; + struct tm not_before () const; + struct tm not_after () const; X509* x509 () const { return _certificate; @@ -92,6 +92,8 @@ public: std::string thumbprint () const; + bool has_utf8_strings () const; + private: static std::string name_for_xml (X509_NAME *);