#include <freeradius-devel/server/request.h>
Go to the source code of this file.
◆ fr_totp_t
Definition at line 33 of file totp.h.
Data Fields |
uint32_t |
lookback_interval |
interval in seconds between steps |
uint32_t |
lookback_steps |
number of steps to look back |
uint32_t |
lookforward_steps |
number of steps to look forwards |
uint32_t |
otp_length |
forced to 6 or 8 |
uint32_t |
time_step |
seconds |
◆ fr_totp_cmp()
Implement RFC 6238 TOTP algorithm (HMAC-SHA1).
Appendix B has test vectors. Note that the test vectors are
for 8-character challenges, and not for 6 character
challenges!
- Parameters
-
[in] | cfg | Instance of fr_totp_t |
[in] | request | The current request |
[in] | now | The current time |
[in] | key | Key to encrypt. |
[in] | keylen | Length of key field. |
[in] | totp | TOTP password entered by the user. |
- Returns
- 0 On Success
- -1 On Failure
- -2 On incorrect arguments
Definition at line 71 of file totp.c.