#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | otp_pwe_chap |
struct | otp_pwe_pap |
struct | otp_reply_t |
struct | otp_request_t |
struct | otp_request_t.pwe |
union | otp_request_t.pwe.u |
Macros | |
#define | OTP_MAX_CHALLENGE_LEN 16 |
#define | OTP_MAX_CHAP_CHALLENGE_LEN 16 |
#define | OTP_MAX_CHAP_RESPONSE_LEN 50 |
#define | OTP_MAX_PASSCODE_LEN 47 |
#define | OTP_MAX_USERNAME_LEN 31 |
#define | OTP_RC_AUTH_ERR 3 |
#define | OTP_RC_AUTHINFO_UNAVAIL 2 |
#define | OTP_RC_IPIN 7 |
#define | OTP_RC_MAXTRIES 4 |
#define | OTP_RC_NEXTPASSCODE 6 |
#define | OTP_RC_OK 0 |
#define | OTP_RC_SERVICE_ERR 5 |
#define | OTP_RC_USER_UNKNOWN 1 |
Typedefs | |
typedef struct otp_pwe_chap | otp_pwe_chap_t |
typedef struct otp_pwe_pap | otp_pwe_pap_t |
typedef enum otp_pwe | otp_pwe_t |
typedef struct otp_reply_t | otp_reply_t |
typedef struct otp_request_t | otp_request_t |
Enumerations | |
enum | otp_pwe { PWE_NONE = 0, PWE_PAP = 1, PWE_CHAP = 3, PWE_MSCHAP = 5, PWE_MSCHAP2 = 7 } |
struct otp_pwe_chap |
Data Fields | ||
---|---|---|
uint8_t | challenge[OTP_MAX_CHAP_CHALLENGE_LEN] | CHAP challenge. |
size_t | clen | |
uint8_t | response[OTP_MAX_CHAP_RESPONSE_LEN] | |
size_t | rlen |
struct otp_pwe_pap |
Data Fields | ||
---|---|---|
char | passcode[OTP_MAX_PASSCODE_LEN+1] |
struct otp_reply_t |
Data Fields | ||
---|---|---|
char | passcode[OTP_MAX_PASSCODE_LEN+1] | |
int | rc | |
int | version | Should be 1. |
struct otp_request_t |
Data Fields | ||
---|---|---|
bool | allow_async | Async auth allowed? |
bool | allow_sync | Sync auth allowed? |
char | challenge[OTP_MAX_CHALLENGE_LEN+1] | USER challenge. |
unsigned | challenge_delay | Min delay between async auths. |
struct otp_request_t | pwe | |
int | resync | Resync on async auth? |
char | username[OTP_MAX_USERNAME_LEN+1] | |
int | version | Should be 2. |
union otp_request_t.pwe.u |
Data Fields | ||
---|---|---|
otp_pwe_chap_t | chap | |
otp_pwe_pap_t | pap |
typedef struct otp_pwe_chap otp_pwe_chap_t |
typedef struct otp_pwe_pap otp_pwe_pap_t |
typedef struct otp_reply_t otp_reply_t |
typedef struct otp_request_t otp_request_t |