Zero-copy principals + CompactString partial impl

This commit is contained in:
mdecimus
2025-04-15 19:34:13 +02:00
parent 0568456d29
commit d6dc6ee8c5
223 changed files with 3509 additions and 2896 deletions

View File

@@ -39,8 +39,8 @@ impl TlsaVerify for Tlsa {
);
return Err(Status::TemporaryFailure(Error::DaneError(ErrorDetails {
entity: hostname.to_string(),
details: "No certificates were provided by host".to_string(),
entity: hostname.into(),
details: "No certificates were provided by host".into(),
})));
};
@@ -59,8 +59,8 @@ impl TlsaVerify for Tlsa {
);
return Err(Status::TemporaryFailure(Error::DaneError(ErrorDetails {
entity: hostname.to_string(),
details: "Failed to parse X.509 certificate".to_string(),
entity: hostname.into(),
details: "Failed to parse X.509 certificate".into(),
})));
}
};
@@ -143,8 +143,8 @@ impl TlsaVerify for Tlsa {
);
Err(Status::PermanentFailure(Error::DaneError(ErrorDetails {
entity: hostname.to_string(),
details: "No matching certificates found in TLSA records".to_string(),
entity: hostname.into(),
details: "No matching certificates found in TLSA records".into(),
})))
}
}