~nitrokey/nitrokey/+git/libnitrokey:pr_116

Last commit made on 2018-07-07
Get this branch:
git clone -b pr_116 https://git.launchpad.net/~nitrokey/nitrokey/+git/libnitrokey

Branch merges

Branch information

Name:
pr_116
Repository:
lp:~nitrokey/nitrokey/+git/libnitrokey

Recent commits

601f43b... by Szczepan

Handle new enum model value in NK_login_enum

Signed-off-by: Szczepan Zalega <email address hidden>

f0f1691... by Szczepan

Replace *out function parameter with return value

Using return value instead of memory manipulation seem to be cleaner solution and less error prone
due to avoiding pointer usage.

Signed-off-by: Szczepan Zalega <email address hidden>

6e44c2b... by Robin Krahl

Expose device model in C API

The C++ API already provides access to the model of the connected device
in NitrokeyManager::get_connected_device_model(). This patch also
exposes this information in the C API by adding NK_get_device_model. As
there might be no device connected, the function returns a boolean
indicating the connection status and writes the model of the connected
device to a pointer passed as an argument.

391a276... by Szczepan

Merge branch '110-mixed_strings'

Make sure all C API strings are deallocable.

Tested with Python's 3.6.5 'pytest -sv test_{pro,storage}.py' on Storage v0.50,
Ubuntu 18.04

Closes #110

9ab13fd... by Szczepan

Correct NK_status() reply length

Signed-off-by: Szczepan Zalega <email address hidden>

d2db195... by Szczepan

Implement suggested tests

Signed-off-by: Szczepan Zalega <email address hidden>

776505c... by Szczepan

Change const char* to char* for functions returning duplicated strings.

All functions returning duplicated C-strings, which needs to be deallocated on caller side, are typed char* instead of const char*
Issue #110

Signed-off-by: Szczepan Zalega <email address hidden>

7a8550d... by Szczepan

Return allocated string instead of pointer to a string literal

Issue #110

Signed-off-by: Szczepan Zalega <email address hidden>

7f5f471... by Szczepan

Merge branch 'pr_106'

Update documentation of C API regarding OTP secret length and type.

Closes #106

9af2bd0... by Szczepan

Remove (Pro) marks from C API docs

These were to meant, that the sizes were confirmed for Pro and not for Storage, during library development. Storage has maintained the compatibility, hence there is no need for the mentioned marks.
Issue #106

Signed-off-by: Szczepan Zalega <email address hidden>