Сегодня, ковыряясь в исходниках ppp, наткнулся на такой вот комментарий ;))))) (который второй) -+---------------------------- case CHAP_MICROSOFT_V2: { /* MS-CHAP-Challenge and MS-CHAP2-Response */ MS_Chap2Response *rmd = (MS_Chap2Response *) response; u_char *p = cpassword;
if (response_len != MS_CHAP2_RESPONSE_LEN) return 0; *p++ = id; > /* The idiots use a different field order in RADIUS than PPP */ memcpy(p, rmd->Flags, sizeof(rmd->Flags)); p += sizeof(rmd->Flags); memcpy(p, rmd->PeerChallenge, sizeof(rmd->PeerChallenge)); p += sizeof(rmd->PeerChallenge); memcpy(p, rmd->Reserved, sizeof(rmd->Reserved)); p += sizeof(rmd->Reserved); memcpy(p, rmd->NTResp, sizeof(rmd->NTResp));