Lines Matching refs:response
195 unsigned char *challenge, unsigned char *response, in chapms_verify_response() argument
203 response_len = *response++; in chapms_verify_response()
208 if (!response[MS_CHAP_USENT]) { in chapms_verify_response()
220 if (!response[MS_CHAP_USENT]) in chapms_verify_response()
221 diff = memcmp(&response[MS_CHAP_LANMANRESP], in chapms_verify_response()
225 diff = memcmp(&response[MS_CHAP_NTRESP], &md[MS_CHAP_NTRESP], in chapms_verify_response()
243 unsigned char *challenge, unsigned char *response, in chapms2_verify_response() argument
251 response_len = *response++; in chapms2_verify_response()
256 ChapMS2(challenge, &response[MS_CHAP2_PEER_CHALLENGE], name, in chapms2_verify_response()
280 if (memcmp(&md[MS_CHAP2_NTRESP], &response[MS_CHAP2_NTRESP], in chapms2_verify_response()
282 if (response[MS_CHAP2_FLAGS]) in chapms2_verify_response()
318 chapms_make_response(unsigned char *response, int id, char *our_name, in chapms_make_response() argument
323 *response++ = MS_CHAP_RESPONSE_LEN; in chapms_make_response()
324 ChapMS(challenge, secret, secret_len, response); in chapms_make_response()
330 unsigned char response[MS_CHAP2_RESPONSE_LEN]; member
342 unsigned char *response, in chapms2_add_to_response_cache() argument
349 memcpy(chapms2_response_cache[i].response, response, in chapms2_add_to_response_cache()
384 chapms2_make_response(unsigned char *response, int id, char *our_name, in chapms2_make_response() argument
392 *response++ = MS_CHAP2_RESPONSE_LEN; in chapms2_make_response()
395 memcpy(response, cache_entry->response, MS_CHAP2_RESPONSE_LEN); in chapms2_make_response()
404 our_name, secret, secret_len, response, auth_response, in chapms2_make_response()
406 chapms2_add_to_response_cache(id, challenge, response, auth_response); in chapms2_make_response()
513 u_char response[24]) in ChallengeResponse()
526 DesEncrypt(challenge, response + 0); in ChallengeResponse()
528 DesEncrypt(challenge, response + 8); in ChallengeResponse()
530 DesEncrypt(challenge, response + 16); in ChallengeResponse()
533 dbglog("ChallengeResponse - response %.24B", response); in ChallengeResponse()
642 unsigned char *response) in ChapMS_LANMan() argument
656 ChallengeResponse(rchallenge, PasswordHash, &response[MS_CHAP_LANMANRESP]); in ChapMS_LANMan()
889 unsigned char *response) in ChapMS() argument
891 BZERO(response, MS_CHAP_RESPONSE_LEN); in ChapMS()
893 ChapMS_NT(rchallenge, secret, secret_len, &response[MS_CHAP_NTRESP]); in ChapMS()
897 &response[MS_CHAP_LANMANRESP]); in ChapMS()
900 response[MS_CHAP_USENT] = !ms_lanman; in ChapMS()
902 response[MS_CHAP_USENT] = 1; in ChapMS()
923 char *user, char *secret, int secret_len, unsigned char *response, in ChapMS2() argument
927 u_char *p = &response[MS_CHAP2_PEER_CHALLENGE]; in ChapMS2()
930 BZERO(response, MS_CHAP2_RESPONSE_LEN); in ChapMS2()
937 BCOPY(PeerChallenge, &response[MS_CHAP2_PEER_CHALLENGE], in ChapMS2()
941 ChapMS2_NT(rchallenge, &response[MS_CHAP2_PEER_CHALLENGE], user, in ChapMS2()
942 secret, secret_len, &response[MS_CHAP2_NTRESP]); in ChapMS2()
946 &response[MS_CHAP2_NTRESP], in ChapMS2()
947 &response[MS_CHAP2_PEER_CHALLENGE], in ChapMS2()
952 &response[MS_CHAP2_NTRESP], authenticator); in ChapMS2()