diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-29 16:59:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-30 14:29:26 +0100 |
| commit | 48411d901329200fa65a5d37388d34f40e6ee4bc (patch) | |
| tree | 5ed73b1e925b0d75372283355c7b2e88277d45e8 /src | |
| parent | 478c3d57f263ff05bb3f965e9cc94f273dadea4c (diff) | |
Add an assertion.
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate_chain.cc | 1 |
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 ); |
