Add an explicit exception for J2K decompression failures.
[libdcp.git] / src / certificate.h
index 8237c739e726200ad74c58ec3177c1df72984337..4be673cc88f82e468f4f1b41027db6b1de122a05 100644 (file)
@@ -44,8 +44,6 @@
 #include <string>
 #include <list>
 
-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 *);