2018-06-19 19:27:27 +00:00
|
|
|
--- nitrokey-hotp-verification-a/Toolchain-heads.cmake 2018-05-22 09:55:46.907209235 -0700
|
|
|
|
+++ nitrokey-hotp-verification-b/Toolchain-heads.cmake 2018-05-22 09:55:26.659371966 -0700
|
|
|
|
@@ -0,0 +1,18 @@
|
|
|
|
+SET(CMAKE_SYSTEM_NAME Linux)
|
|
|
|
+SET(CMAKE_SYSTEM_VERSION 1)
|
|
|
|
+
|
|
|
|
+# Specify the cross compiler
|
|
|
|
+SET(CMAKE_C_COMPILER $ENV{INSTALL}/bin/musl-gcc)
|
|
|
|
+SET(CMAKE_CXX_COMPILER $ENV{INSTALL}/bin/musl-gcc)
|
|
|
|
+
|
|
|
|
+# Where is the target environment
|
|
|
|
+SET(CMAKE_FIND_ROOT_PATH $ENV{INSTALL})
|
|
|
|
+
|
|
|
|
+# Search for programs only in the build host directories
|
|
|
|
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
+
|
|
|
|
+# Search for libraries and headers only in the target directories
|
|
|
|
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
+
|
|
|
|
+INCLUDE_DIRECTORIES(hidapi)
|
2018-06-20 23:20:15 +00:00
|
|
|
--- libremkey-hotp-verification/device.c 2018-06-20 16:13:36.417804210 -0700
|
|
|
|
+++ libremkey-hotp-verification-b/device.c 2018-06-20 16:14:34.532367723 -0700
|
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
const unsigned short m_vid = 0x20a0;
|
|
|
|
const unsigned short m_pid = 0x4108;
|
|
|
|
|
|
|
|
-static const int CONNECTION_ATTEMPTS_COUNT = 80;
|
|
|
|
+static const int CONNECTION_ATTEMPTS_COUNT = 2;
|
|
|
|
|
|
|
|
static const int CONNECTION_ATTEMPT_DELAY_MICRO_SECONDS = 1000*1000/2;
|
|
|
|
|