diff options
Diffstat (limited to 'include/otputil.h')
| -rw-r--r-- | include/otputil.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/otputil.h b/include/otputil.h index 13420fc..b6d6112 100644 --- a/include/otputil.h +++ b/include/otputil.h | |||
| @@ -173,6 +173,8 @@ | |||
| 173 | #define OTPUTIL_OTP_SEED_MIN_LEN 1 | 173 | #define OTPUTIL_OTP_SEED_MIN_LEN 1 |
| 174 | #define OTPUTIL_OTP_SEED_MAX_LEN 16 | 174 | #define OTPUTIL_OTP_SEED_MAX_LEN 16 |
| 175 | 175 | ||
| 176 | #define OTPUTIL_SKEY_PASS_MAX_LEN 127 | ||
| 177 | |||
| 176 | 178 | ||
| 177 | ///////////////// | 179 | ///////////////// |
| 178 | // // | 180 | // // |
| @@ -398,6 +400,13 @@ otputil_otp_str( | |||
| 398 | #pragma mark S/KEY functions (RFC 1760) | 400 | #pragma mark S/KEY functions (RFC 1760) |
| 399 | 401 | ||
| 400 | _OTPUTIL_F int | 402 | _OTPUTIL_F int |
| 403 | otputil_skey_code( | ||
| 404 | const char * skey_pass, | ||
| 405 | int skey_seq, | ||
| 406 | uint64_t * skey_resultp ); | ||
| 407 | |||
| 408 | |||
| 409 | _OTPUTIL_F int | ||
| 401 | otputil_skey_dict_value( | 410 | otputil_skey_dict_value( |
| 402 | const char * word ); | 411 | const char * word ); |
| 403 | 412 | ||
| @@ -407,6 +416,14 @@ otputil_skey_dict_word( | |||
| 407 | int value ); | 416 | int value ); |
| 408 | 417 | ||
| 409 | 418 | ||
| 419 | _OTPUTIL_F char * | ||
| 420 | otputil_skey_str( | ||
| 421 | const char * skey_pass, | ||
| 422 | int skey_seq, | ||
| 423 | char * dst, | ||
| 424 | size_t dstlen ); | ||
| 425 | |||
| 426 | |||
| 410 | //---------------// | 427 | //---------------// |
| 411 | // TOTP functions // | 428 | // TOTP functions // |
| 412 | //---------------// | 429 | //---------------// |
