diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-12 21:22:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-12 23:13:56 +0100 |
| commit | 0bf04f1817f97e70a918aa12369e04699ae10f46 (patch) | |
| tree | af36729b0f2cb35c9afc53e8a0cade21f80ad8a8 /test/certificates_test.cc | |
| parent | d6b800e1c9a3cdb4f85a2308190afe9f0a856ed4 (diff) | |
Pass certificate validity length into the constructor.v1.8.7
Diffstat (limited to 'test/certificates_test.cc')
| -rw-r--r-- | test/certificates_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/certificates_test.cc b/test/certificates_test.cc index 927bddaf..0c671fc3 100644 --- a/test/certificates_test.cc +++ b/test/certificates_test.cc @@ -215,6 +215,7 @@ BOOST_AUTO_TEST_CASE (certificates_validation9) { dcp::CertificateChain good ( boost::filesystem::path ("openssl"), + 10 * 365, "dcpomatic.com", "dcpomatic.com", ".dcpomatic.smpte-430-2.ROOT", @@ -228,7 +229,7 @@ BOOST_AUTO_TEST_CASE (certificates_validation9) /** Check that we can create a valid chain */ BOOST_AUTO_TEST_CASE (certificates_validation10) { - dcp::CertificateChain good (boost::filesystem::path ("openssl")); + dcp::CertificateChain good (boost::filesystem::path ("openssl"), 10 * 365); BOOST_CHECK_NO_THROW (good.root_to_leaf()); } @@ -244,7 +245,7 @@ BOOST_AUTO_TEST_CASE (signer_validation) BOOST_CHECK (chain.valid ()); /* Put in an unrelated key and the signer should no longer be valid */ - dcp::CertificateChain another_chain (boost::filesystem::path ("openssl")); + dcp::CertificateChain another_chain (boost::filesystem::path ("openssl"), 10 * 365); chain.set_key (another_chain.key().get ()); BOOST_CHECK (!chain.valid ()); } |
