aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 17:37:10 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2020-06-13 17:37:10 +0200
commit8487b7d90b6eb31e2768d928155974462412868f (patch)
tree792a15120580bada87f563fbb19e00e4fa792cc8 /NK_C_API.h
parent495ca38cd871469931550a563adde9e6165164ef (diff)
parent444a6cb764fbcea3c91ae936b1c76a190f935b10 (diff)
downloadlibnitrokey-8487b7d90b6eb31e2768d928155974462412868f.tar.gz
libnitrokey-8487b7d90b6eb31e2768d928155974462412868f.tar.bz2
Merge branch 'purism_device'
Support Librem Key Fixes #163
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);