v0.1.0
RustBox CI / rustbox (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-30 17:22:17 +01:00
1 parent 0421994fe6
commit 425ea7449b
138 files changed
+5705 -1012

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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;
}
}
}