summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-19 22:00:10 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-19 22:00:10 +0100
commit29f9e70edf4bb565e1a49f326f717f149895654f (patch)
tree68876c053f1bd0842e9f6babcb308b3180c30ea1 /src
parentc81e8adf8dd6cc1c795e449c816b867d7319b78b (diff)
Failed attempts.fed43
Diffstat (limited to 'src')
-rw-r--r--src/util.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc
index 55ad0ca9..ec6ff2d6 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -181,12 +181,13 @@ dcp::init (optional<boost::filesystem::path> given_resources_directory)
throw MiscError ("could not initialise xmlsec-crypto");
}
- OpenSSL_add_all_algorithms();
- auto context = xmlSecOpenSSLGetLibCtx();
- DCP_ASSERT(context);
+ auto context = OSSL_LIB_CTX_new();
+ xmlSecOpenSSLSetLibCtx(context);
/* Enable SHA1 digests */
SSL_CTX_set_security_level(reinterpret_cast<SSL_CTX*>(context), 1);
+ OpenSSL_add_all_algorithms();
+
asdcp_smpte_dict = &ASDCP::DefaultSMPTEDict();
auto res = given_resources_directory.get_value_or(resources_directory());