X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=README.MSCHAP80;h=7c16f3eb7e28ca48913562bbcb16d11d50fe6aa2;hp=c77d7696d1d468fa746e33f66c1be4f70070116e;hb=97d01659b04d3827fbf8a04796a5bcb7821080e2;hpb=bcfa20820fc9ff3b25bcf62308e3e737c1897dc6 diff --git a/README.MSCHAP80 b/README.MSCHAP80 index c77d769..7c16f3e 100644 --- a/README.MSCHAP80 +++ b/README.MSCHAP80 @@ -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