diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index 7d959dba..caf499aa 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -63,14 +63,6 @@ #define PPP_CTRL_PBUF_MAX_SIZE PBUF_POOL_BUFSIZE #endif /* PPP_USE_PBUF_RAM */ -/* - * Limits. - */ -#define MAXWORDLEN 1024 /* max length of word in file (incl null) */ -#define MAXARGS 1 /* max # args to a command */ -#define MAXNAMELEN 256 /* max length of hostname or name for auth */ -#define MAXSECRETLEN 256 /* max length of password or secret */ - /* * The basic PPP frame. */ diff --git a/src/netif/ppp/eap.c b/src/netif/ppp/eap.c index f0852f97..4b188cb9 100644 --- a/src/netif/ppp/eap.c +++ b/src/netif/ppp/eap.c @@ -431,7 +431,7 @@ u_char *outp; */ static void eap_figure_next_state(ppp_pcb *pcb, int status) { #ifdef USE_SRP - unsigned char secbuf[MAXWORDLEN], clear[8], *sp, *dp; + unsigned char secbuf[MAXSECRETLEN], clear[8], *sp, *dp; struct t_pw tpw; struct t_confent *tce, mytce; char *cp, *cp2; @@ -1331,7 +1331,7 @@ static void eap_request(ppp_pcb *pcb, u_char *inp, int id, int len) { u_char typenum; u_char vallen; int secret_len; - char secret[MAXWORDLEN]; + char secret[MAXSECRETLEN]; char rhostname[MAXNAMELEN]; md5_context mdContext; u_char hash[MD5_SIGNATURE_SIZE];