1 parent
0421994fe6
commit
425ea7449b
138 files changed
+5705
-1012
No files matched your search
@@ -126,7 +126,7 @@ async fn https_get_address(
|
||||
format!("{host}:{port}")
|
||||
};
|
||||
let request = format!(
|
||||
"GET {target} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.0.6\r\nAccept: application/octet-stream, application/pgp-keys, text/plain\r\nConnection: close\r\n\r\n"
|
||||
"GET {target} HTTP/1.1\r\nHost: {host_header}\r\nUser-Agent: RustBox/0.1.0\r\nAccept: application/octet-stream, application/pgp-keys, text/plain\r\nConnection: close\r\n\r\n"
|
||||
);
|
||||
timeout(duration, stream.write_all(request.as_bytes()))
|
||||
.await
|
||||
|
||||
+9
-9
@@ -286,15 +286,15 @@ pub fn decrypt_inline(
|
||||
let mut signer_fingerprint = None;
|
||||
if signed {
|
||||
for armor in public_armors {
|
||||
if let Ok((public, _)) = SignedPublicKey::from_string(armor) {
|
||||
if decrypted.verify(&public).is_ok() {
|
||||
verified = true;
|
||||
signer_fingerprint = Some(normalize_fingerprint(&format!(
|
||||
"{}",
|
||||
public.primary_key.fingerprint()
|
||||
)));
|
||||
break;
|
||||
}
|
||||
if let Ok((public, _)) = SignedPublicKey::from_string(armor)
|
||||
&& decrypted.verify(&public).is_ok()
|
||||
{
|
||||
verified = true;
|
||||
signer_fingerprint = Some(normalize_fingerprint(&format!(
|
||||
"{}",
|
||||
public.primary_key.fingerprint()
|
||||
)));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user