diff options
author | Jack Lloyd <[email protected]> | 2018-08-16 13:41:17 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-16 13:41:17 -0400 |
commit | dd5c97b25c1dd16c2097a254eb98a1655da61b7f (patch) | |
tree | 7f45d6b8e2a3a16550ca1cb92267080420afdcb2 /src/lib/ffi/ffi_hotp.cpp | |
parent | 25b13af42e05b0522306cee2a1218a5557d25f42 (diff) |
Add TOTP to FFI
Diffstat (limited to 'src/lib/ffi/ffi_hotp.cpp')
-rw-r--r-- | src/lib/ffi/ffi_hotp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/ffi/ffi_hotp.cpp b/src/lib/ffi/ffi_hotp.cpp index ae761450f..8c4cc3bfb 100644 --- a/src/lib/ffi/ffi_hotp.cpp +++ b/src/lib/ffi/ffi_hotp.cpp @@ -34,10 +34,9 @@ int botan_hotp_init(botan_hotp_t* hotp, #if defined(BOTAN_HAS_HOTP) return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int { - *hotp = new botan_hotp_struct(new Botan::HOTP( - Botan::SymmetricKey(key, key_len), - hash_algo, - digits)); + *hotp = new botan_hotp_struct( + new Botan::HOTP(key, key_len, hash_algo, digits)); + return BOTAN_FFI_SUCCESS; }); #else |