summaryrefslogtreecommitdiff
path: root/src/tools/dcpomatic_kdm_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-04 01:03:43 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-08 23:25:22 +0100
commit2a3016abff8efb4c5ea3e24aa2907e461ffd5a92 (patch)
tree4319aa23dd061b4ab97943347ed1ed0258fb65a6 /src/tools/dcpomatic_kdm_cli.cc
parentd985f168752bcd9649fa89fd887f08f15e65bb08 (diff)
Validation of certificate chains will fail before dcpomatic_setup()
is called, as OpenSSL has not yet been set up. Make sure that these failures only raise a Bad() (which nobody is yet listening to) rather than throwing an exception which gets caught and reported as a failed-to-load config. If none of the OpenSSL stuff is working chain_valid() will return false but private_key_valid() will throw an exception (as it tries to get the leaf certificate, causing a validity check).
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
0 files changed, 0 insertions, 0 deletions