26 RCSIDH(otp_h,
"$Id: db43962786fdadf53b7d63975da4f3074a3d8ae7 $")
28 #include <sys/types.h>
34 #ifndef OTP_MAX_CHALLENGE_LEN
35 #define OTP_MAX_CHALLENGE_LEN 16
36 #elif OTP_MAX_CHALLENGE_LEN != 16
37 #error OTP_MAX_CHALLENGE_LEN
41 #define OTP_RC_USER_UNKNOWN 1
42 #define OTP_RC_AUTHINFO_UNAVAIL 2
43 #define OTP_RC_AUTH_ERR 3
44 #define OTP_RC_MAXTRIES 4
45 #define OTP_RC_SERVICE_ERR 5
46 #define OTP_RC_NEXTPASSCODE 6
49 #define OTP_MAX_USERNAME_LEN 31
52 #define OTP_MAX_PASSCODE_LEN 47
53 #define OTP_MAX_CHAP_CHALLENGE_LEN 16
54 #define OTP_MAX_CHAP_RESPONSE_LEN 50
char challenge[OTP_MAX_CHALLENGE_LEN+1]
USER challenge.
uint8_t challenge[OTP_MAX_CHAP_CHALLENGE_LEN]
CHAP challenge.
#define OTP_MAX_CHAP_RESPONSE_LEN
char passcode[OTP_MAX_PASSCODE_LEN+1]
struct otp_pwe_pap otp_pwe_pap_t
struct otp_reply_t otp_reply_t
#define OTP_MAX_CHAP_CHALLENGE_LEN
struct otp_request_t otp_request_t
uint8_t response[OTP_MAX_CHAP_RESPONSE_LEN]
char username[OTP_MAX_USERNAME_LEN+1]
int resync
Resync on async auth?
char passcode[OTP_MAX_PASSCODE_LEN+1]
bool allow_sync
Sync auth allowed?
bool allow_async
Async auth allowed?
#define OTP_MAX_CHALLENGE_LEN
struct otp_pwe_chap otp_pwe_chap_t
#define OTP_MAX_PASSCODE_LEN
struct otp_request_t::@20 pwe
unsigned challenge_delay
Min delay between async auths.
#define OTP_MAX_USERNAME_LEN