diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-12 21:15:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-12 23:13:49 +0100 |
| commit | d6b800e1c9a3cdb4f85a2308190afe9f0a856ed4 (patch) | |
| tree | 439b3c142ac392b9888585d51c463696cef6ff87 /src/certificate.h | |
| parent | 0a5615c17edf6d9c51d9269c824d6caf71f710e5 (diff) | |
Cleanup: use dcp::LocalTime for certificate validity times.
Before we were using struct tm but not filling it all in, which
seems quite unpleasant.
Diffstat (limited to 'src/certificate.h')
| -rw-r--r-- | src/certificate.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/certificate.h b/src/certificate.h index 1b8188c7..49fca02c 100644 --- a/src/certificate.h +++ b/src/certificate.h @@ -41,6 +41,7 @@ #define LIBDCP_CERTIFICATE_H +#include "local_time.h" #undef X509_NAME #include <openssl/x509.h> #include <boost/filesystem.hpp> @@ -106,8 +107,9 @@ 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; + + LocalTime not_before () const; + LocalTime not_after () const; X509* x509 () const { return _certificate; |
