diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-12 16:18:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-12 16:18:18 +0100 |
| commit | d6bf14897e544761e1a58b6d41f261d446afa5c9 (patch) | |
| tree | bc12615b76526086d6177caf2c8c60b3b3783d7c /src/lib | |
| parent | cee7cd1b4ed024f58487b6dd9fe9d9c838238c19 (diff) | |
Return to 10-year certificate validity (#2174).
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 1 | ||||
| -rw-r--r-- | src/lib/util.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index a4dea7fd1..9b0cc5f97 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -210,6 +210,7 @@ Config::create_certificate_chain () return shared_ptr<dcp::CertificateChain> ( new dcp::CertificateChain ( openssl_path(), + CERTIFICATE_VALIDITY_PERIOD, "dcpomatic.com", "dcpomatic.com", ".dcpomatic.smpte-430-2.ROOT", diff --git a/src/lib/util.h b/src/lib/util.h index a011da335..933618d6c 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -63,6 +63,8 @@ namespace dcp { #define CLOSED_CAPTION_LINES 3 /** Maximum line length of closed caption viewers */ #define CLOSED_CAPTION_LENGTH 30 +/** Validity period of certificate chains (in days) */ +#define CERTIFICATE_VALIDITY_PERIOD (10 * 365) extern std::string program_name; extern bool is_batch_converter; |
