aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-03 17:02:02 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:29 +0100
commit8cb4f03c841e7035af1893f260db5690cf6b4aa5 (patch)
treedafe45f4b40668013ae5d9bae180874715894662 /NitrokeyManager.cc
parentfe36daa38ab1995c8c7fc6470d06b8595efd2385 (diff)
downloadlibnitrokey-8cb4f03c841e7035af1893f260db5690cf6b4aa5.tar.gz
libnitrokey-8cb4f03c841e7035af1893f260db5690cf6b4aa5.tar.bz2
Document Storage methods in C API
Use uint8_t instead of int where appropriate Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index fdf1e05..bba06a3 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -489,11 +489,6 @@ namespace nitrokey{
//storage commands
- /**
- * TODO rename to set_time ?
- * TODO check what exactly this one is doing
- * @param seconds_from_epoch
- */
void NitrokeyManager::send_startup(uint64_t seconds_from_epoch){
auto p = get_payload<stick20::SendStartup>();
// p.set_defaults();
@@ -512,8 +507,8 @@ namespace nitrokey{
//TODO check is encrypted volume unlocked before execution
//if not return library exception
- void NitrokeyManager::create_hidden_volume(int slot_nr, int start_percent, int end_percent,
- const char* hidden_volume_password) {
+ void NitrokeyManager::create_hidden_volume(uint8_t slot_nr, uint8_t start_percent, uint8_t end_percent,
+ const char *hidden_volume_password) {
auto p = get_payload<stick20::SetupHiddenVolume>();
p.SlotNr_u8 = slot_nr;
p.StartBlockPercent_u8 = start_percent;