• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ppp-786.1.1/Helpers/pppd/

Lines Matching refs:challenge

186 	{ "mschap-challenge", o_string, &mschap_challenge,
187 "specify CHAP challenge" },
188 { "mschap2-peer-challenge", o_string, &mschap2_peer_challenge,
189 "specify CHAP peer challenge" },
195 * chapms_generate_challenge - generate a challenge for MS-CHAP.
196 * For MS-CHAP the challenge length is fixed at 8 bytes.
197 * The length goes in challenge[0] and the actual challenge starts
198 * at challenge[1].
201 chapms_generate_challenge(unsigned char *challenge)
203 *challenge++ = 8;
205 memcpy(challenge, mschap_challenge, 8);
207 random_bytes(challenge, 8);
211 chapms2_generate_challenge(unsigned char *challenge)
213 *challenge++ = 16;
215 memcpy(challenge, mschap_challenge, 16);
217 random_bytes(challenge, 16);
223 unsigned char *challenge, unsigned char *response,
231 challenge_len = *challenge++; /* skip length, is 8 */
247 ChapMS(challenge, secret, secret_len, &md);
266 challenge_len, challenge);
273 unsigned char *challenge, unsigned char *response,
281 challenge_len = *challenge++; /* skip length, is 16 */
289 ChapMS2(challenge, rmd->PeerChallenge, name,
329 * c = challenge to use for next response, we reuse previous
337 * Note that it's safe to reuse the same challenge as we don't
345 challenge_len, challenge, "Access denied");
351 unsigned char *challenge, u_char *secret, int secret_len,
354 challenge++; /* skip length, should be 8 */
356 ChapMS(challenge, secret, secret_len, (MS_ChapResponse *) response);
361 unsigned char *challenge, u_char *secret, int secret_len,
366 challenge++; /* skip length, should be 16 */
373 /* use the the last challenge response known if the peer
384 ChapMS2(challenge, challenge_resp,
610 unsigned char challenge[MAX_CHALLENGE_LEN];
612 ascii2hex(status_pkt + 3, sizeof(challenge), challenge);
614 ChapMS2(challenge, mschap2_peer_challenge,
655 unsigned char challenge[MAX_CHALLENGE_LEN];
657 ascii2hex(status_pkt + 3, sizeof(challenge), challenge);
660 ChapMS2(challenge, mschap2_peer_challenge,
812 ChallengeResponse(u_char *challenge,
827 DesEncrypt(challenge, response + 0);
829 DesEncrypt(challenge, response + 8);
831 DesEncrypt(challenge, response + 16);
1210 // Skip 0 to work around a DS API bug that treats a challenge as a C-string instead of byte stream.