summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-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());