summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-20 16:49:27 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-20 16:49:27 +0100
commitb188b1935e8b9a17d7da287d82d6d4303ad03aef (patch)
tree19f586209a9e65b856b3676dd7eea01d3394e5d6 /src
parent2acd421782e0963b4560a2e816dac35fd6e89663 (diff)
Allow build with static xmlsec1.
Diffstat (limited to 'src')
-rw-r--r--src/certificate_chain.cc2
-rw-r--r--src/dcp.cc2
-rw-r--r--src/util.cc2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc
index 953ab22e..d54d8fbd 100644
--- a/src/certificate_chain.cc
+++ b/src/certificate_chain.cc
@@ -52,7 +52,9 @@ LIBDCP_DISABLE_WARNINGS
LIBDCP_ENABLE_WARNINGS
#include <xmlsec/xmldsig.h>
#include <xmlsec/dl.h>
+#ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING
#include <xmlsec/app.h>
+#endif
#include <xmlsec/crypto.h>
#include <openssl/sha.h>
#include <openssl/bio.h>
diff --git a/src/dcp.cc b/src/dcp.cc
index 40690065..049cef12 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -69,7 +69,9 @@ LIBDCP_DISABLE_WARNINGS
#include <asdcp/AS_DCP.h>
LIBDCP_ENABLE_WARNINGS
#include <xmlsec/xmldsig.h>
+#ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING
#include <xmlsec/app.h>
+#endif
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
diff --git a/src/util.cc b/src/util.cc
index 77493ffa..6fec818e 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -54,7 +54,9 @@
#include <asdcp/AS_DCP.h>
#include <xmlsec/xmldsig.h>
#include <xmlsec/dl.h>
+#ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING
#include <xmlsec/app.h>
+#endif
#include <xmlsec/crypto.h>
#include <libxml++/nodes/element.h>
#include <libxml++/document.h>