mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-09-29 04:44:56 +02:00
Use signed RTA (not just its content) when co-signing an RTA.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user