Home | History | Annotate | Download | only in src

Lines Matching refs:ans

374   u_char *ans;
376 ans = chap_BuildAnswer(name, key, chap->auth.id, chap->challenge.peer
382 if (ans) {
384 ans, *ans + 1 + strlen(name), name);
389 free(ans);
697 char *name, *key, *ans;
727 ans = NULL;
775 if ((ans = malloc(alen + 1)) == NULL) {
780 *ans = chap->auth.id;
781 bp = mbuf_Read(bp, ans + 1, alen);
785 alen == 49 && ans[alen] == 0;
792 if ((ans = malloc(len + 1)) == NULL) {
797 bp = mbuf_Read(bp, ans, len);
798 ans[len] = '\0';
826 if (*ans)
828 chapcodes[chap->auth.in.hdr.code], ans);
855 struct MSCHAPv2_resp *resp = (struct MSCHAPv2_resp *)(ans + 1);
866 chap->auth.in.name, ans, alen + 1,
873 if (p->link.lcp.want_authtype == 0x81 && ans[alen] != '\0' &&
875 struct MSCHAPv2_resp *resp = (struct MSCHAPv2_resp *)(ans + 1);
916 if (!chap_Cmp(myans + 1, *myans, ans + 1, alen
941 if (strncasecmp(ans, chap->authresponse, 42)) {
944 " != ans: (%.42s)\n", chap->authresponse, ans);
967 free(ans);