parent
39d2e727f7
commit
54c70fb597
@ -125,20 +125,11 @@ fn import<'store, 'rstore>(mut sq: Sq<'store, 'rstore>,
|
||||
}
|
||||
|
||||
for h in ac.headers.into_iter().filter(|h| h.header_type == Gossip) {
|
||||
if let Some(addr) = h.attributes.iter()
|
||||
if let Some(_addr) = h.attributes.iter()
|
||||
.find_map(|a| (&a.key == "addr").then(|| a.value.clone()))
|
||||
{
|
||||
if let Some(cert) = h.key {
|
||||
if let Ok((ca, _)) = sq.certd_or_else()
|
||||
.and_then(|certd| certd.shadow_ca_autocrypt_gossip_for(
|
||||
&sender_cert, from_addr))
|
||||
{
|
||||
acc.append(&mut certify_downloads(
|
||||
&mut sq, ca,
|
||||
vec![cert], Some(&addr[..])));
|
||||
} else {
|
||||
acc.push(cert);
|
||||
}
|
||||
acc.push(cert);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,14 +58,14 @@ fn sq_autocrypt_import() -> Result<()>
|
||||
// We can now weakly authenticate the peers.
|
||||
let mut cmd = sq.command();
|
||||
cmd.arg("pki").arg("authenticate")
|
||||
.arg("--amount=1")
|
||||
.arg("--gossip")
|
||||
.arg("CBCD8F030588653EEDD7E2659B7DD433F254904A")
|
||||
.arg("--email").arg("justus@sequoia-pgp.org");
|
||||
sq.run(cmd, true);
|
||||
|
||||
let mut cmd = sq.command();
|
||||
cmd.arg("pki").arg("authenticate")
|
||||
.arg("--amount=1")
|
||||
.arg("--gossip")
|
||||
.arg("BB6B7E5F8343B2BE990EB7A7F3AF066F267892C1")
|
||||
.arg("--email").arg("hilal-maria@probier.email");
|
||||
sq.run(cmd, true);
|
||||
|
Loading…
Reference in New Issue
Block a user