mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-13 02:05:43 +00:00
PPP, MSCHAP, fixed compiler warnings if MPPE support is disabled
This commit is contained in:
parent
0f63c1ef8f
commit
f0c25aaa60
@ -829,6 +829,9 @@ static void SetMasterKeys(ppp_pcb *pcb, char *secret, int secret_len, u_char NTR
|
|||||||
|
|
||||||
static void ChapMS(ppp_pcb *pcb, u_char *rchallenge, char *secret, int secret_len,
|
static void ChapMS(ppp_pcb *pcb, u_char *rchallenge, char *secret, int secret_len,
|
||||||
unsigned char *response) {
|
unsigned char *response) {
|
||||||
|
#if !MPPE_SUPPORT
|
||||||
|
LWIP_UNUSED_ARG(pcb);
|
||||||
|
#endif /* !MPPE_SUPPORT */
|
||||||
BZERO(response, MS_CHAP_RESPONSE_LEN);
|
BZERO(response, MS_CHAP_RESPONSE_LEN);
|
||||||
|
|
||||||
ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]);
|
ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]);
|
||||||
@ -866,6 +869,9 @@ static void ChapMS2(ppp_pcb *pcb, u_char *rchallenge, u_char *PeerChallenge,
|
|||||||
u_char *p = &response[MS_CHAP2_PEER_CHALLENGE];
|
u_char *p = &response[MS_CHAP2_PEER_CHALLENGE];
|
||||||
int i;
|
int i;
|
||||||
LWIP_UNUSED_ARG(authenticator);
|
LWIP_UNUSED_ARG(authenticator);
|
||||||
|
#if !MPPE_SUPPORT
|
||||||
|
LWIP_UNUSED_ARG(pcb);
|
||||||
|
#endif /* !MPPE_SUPPORT */
|
||||||
|
|
||||||
BZERO(response, MS_CHAP2_RESPONSE_LEN);
|
BZERO(response, MS_CHAP2_RESPONSE_LEN);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user