diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-31 13:02:15 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-31 13:02:15 +0200 |
commit | 4b698519fc125ee03f47560402e2c35c495e0f7c (patch) | |
tree | 80d703803cec1b09d80e2aa0ebf6bb3ce2cd5601 /NK_C_API_helpers.cpp | |
parent | 2281f33430f3edb874f7fd350ed173e5476a30ed (diff) | |
download | libnitrokey-4b698519fc125ee03f47560402e2c35c495e0f7c.tar.gz libnitrokey-4b698519fc125ee03f47560402e2c35c495e0f7c.tar.bz2 |
Make C API modularized - extract PWS and OTP
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API_helpers.cpp')
-rw-r--r-- | NK_C_API_helpers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/NK_C_API_helpers.cpp b/NK_C_API_helpers.cpp new file mode 100644 index 0000000..f0353aa --- /dev/null +++ b/NK_C_API_helpers.cpp @@ -0,0 +1,5 @@ +#include <string> + +void clear_string(std::string &s) { + std::fill(s.begin(), s.end(), ' '); +}
\ No newline at end of file |