aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorAmit Aronovitch <amit@satellogic.com>2019-10-02 00:01:48 +0300
committerAmit Aronovitch <aronovitch@gmail.com>2019-10-03 12:05:16 +0300
commit4200af146a17398dc7050c92e1f861f2066debec (patch)
tree0ca7deec404da5f59bf6b56aeb19488f8ec28788 /NK_C_API.h
parent28832f06f22a8e24aab4079f1f33159547704ae3 (diff)
downloadlibnitrokey-4200af146a17398dc7050c92e1f861f2066debec.tar.gz
libnitrokey-4200af146a17398dc7050c92e1f861f2066debec.tar.bz2
Identify Librem Key, behaving like Nitrokey Pro device
Diffstat (limited to 'NK_C_API.h')
-rw-r--r--NK_C_API.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index d5c54a3..5b93f08 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -67,6 +67,9 @@
* case NK_STORAGE:
* printf("a Nitrokey Storage");
* break;
+ * case NK_LIBREM:
+ * printf("a Librem Key");
+ * break;
* default:
* printf("an unsupported Nitrokey");
* break;
@@ -111,7 +114,11 @@ extern "C" {
/**
* Nitrokey Storage.
*/
- NK_STORAGE = 2
+ NK_STORAGE = 2,
+ /**
+ * Librem Key.
+ */
+ NK_LIBREM = 3
};
/**
@@ -327,7 +334,7 @@ extern "C" {
/**
* Connect to device of given model. Currently library can be connected only to one device at once.
- * @param device_model NK_device_model: NK_PRO: Nitrokey Pro, NK_STORAGE: Nitrokey Storage
+ * @param device_model NK_device_model: NK_PRO: Nitrokey Pro, NK_STORAGE: Nitrokey Storage, NK_LIBREM: Librem Key
* @return 1 if connected, 0 if wrong model or cannot connect
*/
NK_C_API int NK_login_enum(enum NK_device_model device_model);