Skip to content

Commit

Permalink
Fix compilation issues of OpenSSL tests on 32-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
decathorpe committed Sep 19, 2024
1 parent 964f9c6 commit dfd22b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcgen/tests/openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ fn test_openssl_crl_parse() {
// The properties of the CRL should match expected.
let openssl_issuer = X509::from_der(issuer.der()).unwrap();
let expected_last_update =
Asn1Time::from_unix(crl.params().this_update.unix_timestamp()).unwrap();
Asn1Time::from_unix(crl.params().this_update.unix_timestamp().try_into().unwrap()).unwrap();
assert!(openssl_crl.last_update().eq(&expected_last_update));
let expected_next_update =
Asn1Time::from_unix(crl.params().next_update.unix_timestamp()).unwrap();
Asn1Time::from_unix(crl.params().next_update.unix_timestamp().try_into().unwrap()).unwrap();
assert!(openssl_crl.next_update().unwrap().eq(&expected_next_update));
assert!(matches!(
openssl_crl
Expand Down

0 comments on commit dfd22b2

Please sign in to comment.