aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-01-07 10:27:58 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-01-07 10:27:58 -0900
commit7910146a40826c5cf0335aba6da9feeb156fd1e2 (patch)
treed8b4e5f90c39680309013a6536049ede8dc96053 /include
parentd568782fcafcd9d88e7e66c6fd68a22ca99d76b8 (diff)
downloadotputils-7910146a40826c5cf0335aba6da9feeb156fd1e2.tar.gz
otputils-7910146a40826c5cf0335aba6da9feeb156fd1e2.tar.bz2
otputils-7910146a40826c5cf0335aba6da9feeb156fd1e2.tar.xz
otputils-7910146a40826c5cf0335aba6da9feeb156fd1e2.zip
libotputil: data types for options to otputil_set_param()
Diffstat (limited to 'include')
-rw-r--r--include/otputil.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/otputil.h b/include/otputil.h
index 24f5f11..15b6dc4 100644
--- a/include/otputil.h
+++ b/include/otputil.h
@@ -109,22 +109,22 @@
109 109
110 110
111// general options 111// general options
112#define OTPUTIL_OPT_DESC 0x0001 112#define OTPUTIL_OPT_DESC 0x0001 // (char *)
113#define OTPUTIL_OPT_METHOD 0x0002 113#define OTPUTIL_OPT_METHOD 0x0002 // (int *)
114#define OTPUTIL_OPT_DIGITS 0x0003 // (int *) sets digits for both HOTP and TOTP 114#define OTPUTIL_OPT_DIGITS 0x0003 // (int *) sets digits for both HOTP and TOTP
115#define OTPUTIL_OPT_HMAC 0x0004 // (int *) sets HMAC for both HOTP and TOTP 115#define OTPUTIL_OPT_HMAC 0x0004 // (int *) sets HMAC for both HOTP and TOTP
116// HOTP options (RFC4226) 116// HOTP options (RFC4226)
117#define OTPUTIL_OPT_HOTP_K 0x0100 117#define OTPUTIL_OPT_HOTP_K 0x0100 // (otputil_bv_t *)
118#define OTPUTIL_OPT_HOTP_KSTR 0x0101 // base32 encoded K 118#define OTPUTIL_OPT_HOTP_KSTR 0x0101 // (char *) base32 encoded K
119#define OTPUTIL_OPT_HOTP_C 0x0102 119#define OTPUTIL_OPT_HOTP_C 0x0102 // (uint64_t *)
120#define OTPUTIL_OPT_HOTP_DIGITS 0x0103 // (int *) 120#define OTPUTIL_OPT_HOTP_DIGITS 0x0103 // (int *)
121#define OTPUTIL_OPT_HOTP_HMAC 0x0104 // (int *) 121#define OTPUTIL_OPT_HOTP_HMAC 0x0104 // (int *)
122// TOTP options (RFC6238) 122// TOTP options (RFC6238)
123#define OTPUTIL_OPT_TOTP_K 0x0200 123#define OTPUTIL_OPT_TOTP_K 0x0200 // (otputil_bv_t *)
124#define OTPUTIL_OPT_TOTP_KSTR 0x0201 // base32 encoded K 124#define OTPUTIL_OPT_TOTP_KSTR 0x0201 // (char *) base32 encoded K
125#define OTPUTIL_OPT_TOTP_T0 0x0202 125#define OTPUTIL_OPT_TOTP_T0 0x0202 // (uint64_t *)
126#define OTPUTIL_OPT_TOTP_X 0x0203 126#define OTPUTIL_OPT_TOTP_X 0x0203 // (uint64_t *)
127#define OTPUTIL_OPT_TOTP_TIME 0x0204 // current UNIX time 127#define OTPUTIL_OPT_TOTP_TIME 0x0204 // (uint64_t *) current UNIX time
128#define OTPUTIL_OPT_TOTP_DIGITS 0x0205 // (int *) 128#define OTPUTIL_OPT_TOTP_DIGITS 0x0205 // (int *)
129#define OTPUTIL_OPT_TOTP_HMAC 0x0206 // (int *) 129#define OTPUTIL_OPT_TOTP_HMAC 0x0206 // (int *)
130 130