Use signed RTA (not just its content) when co-signing an RTA.

This commit is contained in:
Tim Bruijnzeels
2020-10-06 14:58:49 +02:00
parent 98aea3b743
commit ad8dddaf41
+1 -1
View File
@@ -220,7 +220,7 @@ impl ResourceTaggedAttestation {
pub fn to_builder(&self) -> KrillResult<rta::RtaBuilder> {
let rta =
rta::Rta::decode(self.bytes.as_ref(), true).map_err(|_| Error::custom("Cannot decode existing RTA"))?;
Ok(rta::RtaBuilder::from_attestation(rta.content().clone()))
Ok(rta::RtaBuilder::from_rta(rta))
}
pub fn rta_builder(