Slightly hacky but hopefully functional fix for KDMs after the changes
authorCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2019 17:34:37 +0000 (17:34 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2019 17:34:37 +0000 (17:34 +0000)
commit2d05cab0e47ef437c3e5fa0f574f1eb4b1cfd64a
treef5b0836171141088a0cb19a8e986a0005621a378
parent8cbeb8c52ba1a91ec9c6517c2557fabada9f10c2
Slightly hacky but hopefully functional fix for KDMs after the changes
to signer.  The KDM stuff uses add_signature_value() but not sign()
since it has to allow pass-through of a KDM (so it handles <Signature> etc.
itself).  This means we have to make the indentation-adding optional.

It might have been nicer to make indent() not add indentation if it's
not already there.
src/certificate_chain.cc
src/certificate_chain.h
src/encrypted_kdm.cc