PPP, cleanup unused/redefined/useless limits in ppp_impl.h

This commit is contained in:
Sylvain Rochet 2015-04-30 01:07:11 +02:00
parent fd53cad208
commit 091c6a3bda
2 changed files with 2 additions and 10 deletions

View File

@ -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.
*/

View File

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