You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-rcgen/0001-fix-compilation-failur...

30 lines
1.2 KiB

From bab763ebedbf03d7f4cc6c139fce4d1005fcb1e8 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Fri, 13 Sep 2024 17:31:15 +0200
Subject: [PATCH] fix compilation failure of OpenSSL tests on 32-bit arches
---
tests/openssl.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/openssl.rs b/tests/openssl.rs
index 478f565..bf7c756 100644
--- a/tests/openssl.rs
+++ b/tests/openssl.rs
@@ -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
--
2.46.0