Skip to content

Commit

Permalink
wip: cleanup one android TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Dec 5, 2023
1 parent f0665f1 commit 53fb8e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/verification/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ impl Verifier {
.map(|cert| cert.as_ref())
.enumerate();

let now: i64 = (now.as_secs() * 1000) as i64; // TODO(@cpu): suspect.
// Convert the unix timestamp into milliseconds, expressed as
// an i64 to later be converted into a Java Long used for a Date
// constructor.
let now: i64 = (now.as_secs() * 1000)
.try_into()
.map_err(|_| TlsError::FailedToGetCurrentTime)?;

let verification_result = with_context(|cx| {
let env = cx.env();
Expand Down

0 comments on commit 53fb8e2

Please sign in to comment.