PPP, replaced drand48() with magic_pow()

This commit is contained in:
Sylvain Rochet
2015-02-28 19:50:25 +01:00
parent bec199c4a2
commit d884034c9f
6 changed files with 18 additions and 16 deletions

View File

@@ -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;

View File

@@ -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", \