X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=README.MSCHAP80;h=7c16f3eb7e28ca48913562bbcb16d11d50fe6aa2;hp=fe7a019416dd70032500244bdf302d75fff565e5;hb=071e88706fea40c651fad23825718cfd060e02ac;hpb=c062322f9e8757b85a3c2281a3190d8af14bcd9b diff --git a/README.MSCHAP80 b/README.MSCHAP80 index fe7a019..7c16f3e 100644 --- a/README.MSCHAP80 +++ b/README.MSCHAP80 @@ -162,7 +162,7 @@ Assuming that everything else has been configured correctly for PPP and CHAP, the MS-CHAP-specific problems you're likely to encounter are mostly related to your Windows NT account and its settings. A Microsoft server returns error codes in its CHAP response. The following are extracted from -Microsoft's "chapexts.txt" file referenced above: +RFC 2433: 646 ERROR_RESTRICTED_LOGON_HOURS 647 ERROR_ACCT_DISABLED @@ -226,7 +226,8 @@ int main(argc, argv) for (i = 0; i < sizeof(challenge); i++) challenge[i] = (u_char)challengeInt[i]; - ChapMS(&cstate, challenge, sizeof(challenge), argv[2], strlen(argv[2])); + ChapMS(&cstate, challenge, argv[2], strlen(argv[2]), + (MS_ChapResponse *)&cstate.response); printf("Response length is %d, response is:", cstate.resp_length); for (i = 0; i < cstate.resp_length; i++) { @@ -241,8 +242,8 @@ int main(argc, argv) } ------------- -This needs to link against chap_ms.o, md4.o, and the DES library. When -you run it with the command line: +This needs to link against chap_ms.o, md4.o, sha1.o and the DES library. +When you run it with the command line: $ testchap 00000000000000000000000000000000 hello