summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-05 00:39:23 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-05 00:39:23 +0000
commitf19fba719f1da6850ae320534c669196ea9d854c (patch)
treea2ce9b401cfed51188b77768c0313b87a48ec2ea /src
parent165a195a377cab293b0dc7b7bdf62164b91cb843 (diff)
Add an assert.
Diffstat (limited to 'src')
-rw-r--r--src/decrypted_kdm.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc
index 895c6144..1b226d9b 100644
--- a/src/decrypted_kdm.cc
+++ b/src/decrypted_kdm.cc
@@ -306,6 +306,8 @@ DecryptedKDM::encrypt (
shared_ptr<const CertificateChain> signer, Certificate recipient, vector<Certificate> trusted_devices, Formulation formulation
) const
{
+ DCP_ASSERT (!_keys.empty ());
+
list<pair<string, string> > key_ids;
list<string> keys;
BOOST_FOREACH (DecryptedKDMKey const & i, _keys) {