From 98eaf71502afeb4f14eb4f7bc365e3211b5709fb Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 21 May 2018 00:53:34 +0200 Subject: Update nitrokey-sys dependency to v3.3.0 Now libnitrokey v3.3 is compiled from source, fixing the problems with older libnitrokey versions (freeing strings, firmware version getter). Also, bindgen is no longer a build dependency. This makes the build process a lot faster. --- src/lib.rs | 2 -- src/tests/pro.rs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index fdc7954..eb5ec5f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -489,8 +489,6 @@ pub trait Device { } /// Returns the major part of the firmware version (should be zero). - /// Note that this method is buggy for libnitrokey older than v3.3. For - /// these versions, this method returns the minor part. /// /// # Example /// diff --git a/src/tests/pro.rs b/src/tests/pro.rs index 7fa8ec3..dee7dc6 100644 --- a/src/tests/pro.rs +++ b/src/tests/pro.rs @@ -196,8 +196,7 @@ fn totp_slot_name() { #[cfg_attr(not(feature = "test-pro"), ignore)] fn get_major_firmware_version() { set_debug(false); - // TODO fix for different libnitrokey versions - assert_eq!(8, ::connect().unwrap().get_major_firmware_version()); + assert_eq!(0, ::connect().unwrap().get_major_firmware_version()); } fn admin_retry(device: UnauthenticatedDevice, suffix: &str, count: u8) -> UnauthenticatedDevice { -- cgit v1.2.1