Lines Matching refs:response

251 		       const unsigned char *challenge, const unsigned char *response,  in chapms_verify_response()  argument
260 response_len = *response++; in chapms_verify_response()
265 if (!response[MS_CHAP_USENT]) { in chapms_verify_response()
277 if (!response[MS_CHAP_USENT]) in chapms_verify_response()
278 diff = memcmp(&response[MS_CHAP_LANMANRESP], in chapms_verify_response()
282 diff = memcmp(&response[MS_CHAP_NTRESP], &md[MS_CHAP_NTRESP], in chapms_verify_response()
299 const unsigned char *challenge, const unsigned char *response, in chapms2_verify_response() argument
307 response_len = *response++; in chapms2_verify_response()
312 ChapMS2(pcb, (const u_char*)challenge, (const u_char*)&response[MS_CHAP2_PEER_CHALLENGE], name, in chapms2_verify_response()
336 if (memcmp(&md[MS_CHAP2_NTRESP], &response[MS_CHAP2_NTRESP], in chapms2_verify_response()
338 if (response[MS_CHAP2_FLAGS]) in chapms2_verify_response()
374 static void chapms_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_nam… in chapms_make_response() argument
381 *response++ = MS_CHAP_RESPONSE_LEN; in chapms_make_response()
382 ChapMS(pcb, challenge, secret, secret_len, response); in chapms_make_response()
385 static void chapms2_make_response(ppp_pcb *pcb, unsigned char *response, int id, const char *our_na… in chapms2_make_response() argument
390 *response++ = MS_CHAP2_RESPONSE_LEN; in chapms2_make_response()
397 our_name, secret, secret_len, response, private_, in chapms2_make_response()
498 u_char response[24]) { in ChallengeResponse()
514 lwip_des_crypt_ecb(&des, challenge, response +0); in ChallengeResponse()
520 lwip_des_crypt_ecb(&des, challenge, response +8); in ChallengeResponse()
526 lwip_des_crypt_ecb(&des, challenge, response +16); in ChallengeResponse()
530 dbglog("ChallengeResponse - response %.24B", response); in ChallengeResponse()
613 unsigned char *response) { in ChapMS_LANMan() argument
637 ChallengeResponse(rchallenge, PasswordHash, &response[MS_CHAP_LANMANRESP]); in ChapMS_LANMan()
839 unsigned char *response) { in ChapMS() argument
843 BZERO(response, MS_CHAP_RESPONSE_LEN); in ChapMS()
845 ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); in ChapMS()
849 &response[MS_CHAP_LANMANRESP]); in ChapMS()
852 response[MS_CHAP_USENT] = !ms_lanman; in ChapMS()
854 response[MS_CHAP_USENT] = 1; in ChapMS()
874 const char *user, const char *secret, int secret_len, unsigned char *response, in ChapMS2() argument
882 BZERO(response, MS_CHAP2_RESPONSE_LEN); in ChapMS2()
886 magic_random_bytes(&response[MS_CHAP2_PEER_CHALLENGE], MS_CHAP2_PEER_CHAL_LEN); in ChapMS2()
888 MEMCPY(&response[MS_CHAP2_PEER_CHALLENGE], PeerChallenge, in ChapMS2()
892 ChapMS2_NT(rchallenge, &response[MS_CHAP2_PEER_CHALLENGE], user, in ChapMS2()
893 secret, secret_len, &response[MS_CHAP2_NTRESP]); in ChapMS2()
897 &response[MS_CHAP2_NTRESP], in ChapMS2()
898 &response[MS_CHAP2_PEER_CHALLENGE], in ChapMS2()
903 &response[MS_CHAP2_NTRESP], authenticator); in ChapMS2()