Lines Matching defs:pcb
173 static void Set_Start_Key (ppp_pcb *pcb, const u_char *, const char *, int);
174 static void SetMasterKeys (ppp_pcb *pcb, const char *, int, u_char[24], int);
177 static void ChapMS (ppp_pcb *pcb, const u_char *, const char *, int, u_char *);
178 static void ChapMS2 (ppp_pcb *pcb, const u_char *, const u_char *, const char *, const char *, int,
225 static void chapms_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) {
226 LWIP_UNUSED_ARG(pcb);
237 static void chapms2_generate_challenge(ppp_pcb *pcb, unsigned char *challenge) {
238 LWIP_UNUSED_ARG(pcb);
249 static int chapms_verify_response(ppp_pcb *pcb, int id, const char *name,
273 ChapMS(pcb, (const u_char *)challenge, (const char *)secret, secret_len, md);
297 static int chapms2_verify_response(ppp_pcb *pcb, int id, const char *name,
312 ChapMS2(pcb, (const u_char*)challenge, (const u_char*)&response[MS_CHAP2_PEER_CHALLENGE], name,
374 static void chapms_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name,
382 ChapMS(pcb, challenge, secret, secret_len, response);
385 static void chapms2_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_name,
391 ChapMS2(pcb, challenge,
401 static int chapms2_check_success(ppp_pcb *pcb, unsigned char *msg, int len, unsigned char *private_) {
402 LWIP_UNUSED_ARG(pcb);
431 static void chapms_handle_failure(ppp_pcb *pcb, unsigned char *inp, int len) {
435 LWIP_UNUSED_ARG(pcb);
714 static void Set_Start_Key(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len) {
735 mppe_set_key(pcb, &pcb->mppe_comp, Digest);
736 mppe_set_key(pcb, &pcb->mppe_decomp, Digest);
738 pcb->mppe_keys_set = 1;
744 static void SetMasterKeys(ppp_pcb *pcb, const char *secret, int secret_len, u_char NTResponse[24], int IsServer) {
812 mppe_set_key(pcb, &pcb->mppe_comp, Digest);
830 mppe_set_key(pcb, &pcb->mppe_decomp, Digest);
832 pcb->mppe_keys_set = 1;
838 static void ChapMS(ppp_pcb *pcb, const u_char *rchallenge, const char *secret, int secret_len,
841 LWIP_UNUSED_ARG(pcb);
858 Set_Start_Key(pcb, rchallenge, secret, secret_len);
873 static void ChapMS2(ppp_pcb *pcb, const u_char *rchallenge, const u_char *PeerChallenge,
879 LWIP_UNUSED_ARG(pcb);
902 SetMasterKeys(pcb, secret, secret_len,