summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-05-21 00:53:34 +0200
committerRobin Krahl <me@robin-krahl.de>2018-05-21 01:02:11 +0200
commit98eaf71502afeb4f14eb4f7bc365e3211b5709fb (patch)
tree9c3916298879769dd1adee622f007caae975eb11 /src
parent96b2f4bd20f81fdc1e57c004cd66d90221be6f87 (diff)
downloadnitrokey-rs-98eaf71502afeb4f14eb4f7bc365e3211b5709fb.tar.gz
nitrokey-rs-98eaf71502afeb4f14eb4f7bc365e3211b5709fb.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
-rw-r--r--src/tests/pro.rs3
2 files changed, 1 insertions, 4 deletions
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 {