mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 22:12:12 +00:00
test(openpgp): align signature time with generated key
This commit is contained in:
1 parent
7316e4e223
commit
4c25109473
1 file changed
+2
-1
@@ -443,7 +443,8 @@ fn the_unhashed_area_never_decides_who_is_blamed() {
|
||||
|
||||
// An issuer only in the unhashed area finds a key, which counts because it fits.
|
||||
let alice = secret(ALICE, Make::default());
|
||||
let mut config = config(&alice.primary_key, pgp::packet::SignatureType::Binary, t, vec![]);
|
||||
let alice_created = made(&alice);
|
||||
let mut config = config(&alice.primary_key, pgp::packet::SignatureType::Binary, alice_created, vec![]);
|
||||
config.hashed_subpackets.retain(|p| matches!(p.data, SubpacketData::SignatureCreationTime(_)));
|
||||
config.unhashed_subpackets = vec![Subpacket::regular(SubpacketData::IssuerFingerprint(alice.primary_key.fingerprint())).unwrap()];
|
||||
let sig = config.sign(&alice.primary_key, &Password::empty(), SIGNED_PART.as_bytes()).unwrap();
|
||||
|
||||
Reference in new issue
Block a user