summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-29 16:59:51 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-30 14:29:26 +0100
commit48411d901329200fa65a5d37388d34f40e6ee4bc (patch)
tree5ed73b1e925b0d75372283355c7b2e88277d45e8 /src
parent478c3d57f263ff05bb3f965e9cc94f273dadea4c (diff)
Add an assertion.
Diffstat (limited to 'src')
-rw-r--r--src/certificate_chain.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc
index 2bbddc7f..9ddcbce3 100644
--- a/src/certificate_chain.cc
+++ b/src/certificate_chain.cc
@@ -676,6 +676,7 @@ CertificateChain::add_signature_value (xmlpp::Element* parent, string ns, bool a
throw MiscError ("could not create signature context");
}
+ DCP_ASSERT(_key);
signature_context->signKey = xmlSecCryptoAppKeyLoadMemory (
reinterpret_cast<const unsigned char *> (_key->c_str()), _key->size(), xmlSecKeyDataFormatPem, 0, 0, 0
);