mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 08:10:24 +00:00
PPP, cleanup unused/redefined/useless limits in ppp_impl.h
This commit is contained in:
parent
fd53cad208
commit
091c6a3bda
@ -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.
|
||||
*/
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user