aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-01-12 01:12:45 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-01-12 01:13:56 -0900
commit9fcee0c6a6a8641d19c3d0a1124d91cf6b620f9d (patch)
tree274d7e3ab615151f89d8a2417f7cc3ffb947dbb4 /include
parent08e9ad179bad21d46d2389629f35e0bccf296ab3 (diff)
downloadotputils-9fcee0c6a6a8641d19c3d0a1124d91cf6b620f9d.tar.gz
otputils-9fcee0c6a6a8641d19c3d0a1124d91cf6b620f9d.tar.bz2
otputils-9fcee0c6a6a8641d19c3d0a1124d91cf6b620f9d.tar.xz
otputils-9fcee0c6a6a8641d19c3d0a1124d91cf6b620f9d.zip
libotputil: fixing checks in otputil_otp_code()
Diffstat (limited to 'include')
-rw-r--r--include/otputil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/otputil.h b/include/otputil.h
index f549eb2..13420fc 100644
--- a/include/otputil.h
+++ b/include/otputil.h
@@ -348,12 +348,13 @@ otputil_hotp_str(
348//---------------// 348//---------------//
349#pragma mark OTP functions (RFC 2289) 349#pragma mark OTP functions (RFC 2289)
350 350
351_OTPUTIL_F uint64_t 351_OTPUTIL_F int
352otputil_otp_code( 352otputil_otp_code(
353 const char * otp_pass, 353 const char * otp_pass,
354 const char * otp_seed, 354 const char * otp_seed,
355 int otp_seq, 355 int otp_seq,
356 int otp_hash ); 356 int otp_hash,
357 uint64_t * otp_resultp );
357 358
358 359
359_OTPUTIL_F otputil_bv_t * 360_OTPUTIL_F otputil_bv_t *