summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-05-20 22:31:34 +0000
committerRobin Krahl <robin.krahl@ireas.org>2018-05-21 00:35:19 +0200
commit9eee4b2475d74cd94c9d72b2520d5568d4564fba (patch)
tree83d44c03edff5b480db40bbd2c2284d21f17b696 /src
parent7fe2032c464ad7a79963823793e94e2c62b770e6 (diff)
downloadnitrokey-sys-rs-9eee4b2475d74cd94c9d72b2520d5568d4564fba.tar.gz
nitrokey-sys-rs-9eee4b2475d74cd94c9d72b2520d5568d4564fba.tar.bz2
Build libnitrokey from source
This patch changes the build script to compile and link libnitrokey from the included source. Also, we have to link against hidapi-libusb as a libnitrokey requirement.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 169dac4..2740cc9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -14,6 +14,8 @@ mod tests {
#[test]
fn login_auto() {
unsafe {
+ // logout required due to https://github.com/Nitrokey/libnitrokey/pull/115
+ NK_logout();
assert_eq!(0, NK_login_auto());
}
}