Skip to content

Commit

Permalink
wip: tidy more todos, restore allows
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Dec 5, 2023
1 parent 1c8f0e3 commit 30e9102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/verification/apple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mod errors {
};
}

#[allow(clippy::as_conversions)]
fn system_time_to_cfdate(time: pki_types::UnixTime) -> Result<CFDate, TlsError> {
// SAFETY: The interval is defined by macOS externally, but is always present and never modified at runtime
// since its a global variable.
Expand Down
2 changes: 1 addition & 1 deletion src/verification/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl CertificateStore {
// the result into a `FILETIME` structure.

let since_windows_epoch = since_unix_epoch + UNIX_ADJUSTMENT.as_secs();
let intervals = (since_windows_epoch * 1000000000) / 100; // TODO(@cpu): highly suspect diff.
let intervals = (since_windows_epoch * 1_000_000_000) / 100;

FILETIME {
dwLowDateTime: (intervals & u32::MAX as u64) as u32,
Expand Down

0 comments on commit 30e9102

Please sign in to comment.