From 48411d901329200fa65a5d37388d34f40e6ee4bc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Dec 2024 16:59:51 +0100 Subject: Add an assertion. --- src/certificate_chain.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 (_key->c_str()), _key->size(), xmlSecKeyDataFormatPem, 0, 0, 0 ); -- cgit v1.2.3