mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-21 23:56:59 +08:00
PPP, replaced drand48() with magic_pow()
This commit is contained in:
@@ -159,7 +159,7 @@ typedef struct chap_client_state {
|
||||
#if PPP_SERVER
|
||||
typedef struct chap_server_state {
|
||||
u8_t flags;
|
||||
int id;
|
||||
u8_t id;
|
||||
const char *name;
|
||||
const struct chap_digest_type *digest;
|
||||
int challenge_xmits;
|
||||
|
||||
@@ -80,8 +80,9 @@ extern "C" {
|
||||
#define SRP_PSEUDO_LEN 7
|
||||
|
||||
#define MD5_SIGNATURE_SIZE 16
|
||||
#define EAP_MIN_CHALLENGE_LENGTH 16
|
||||
#define EAP_MIN_CHALLENGE_LENGTH 17
|
||||
#define EAP_MAX_CHALLENGE_LENGTH 24
|
||||
#define EAP_MIN_MAX_POWER_OF_TWO_CHALLENGE_LENGTH 3 /* 2^3-1 = 7, 17+7 = 24 */
|
||||
|
||||
#define EAP_STATES \
|
||||
"Initial", "Pending", "Closed", "Listen", "Identify", \
|
||||
|
||||
Reference in New Issue
Block a user