summaryrefslogtreecommitdiff
path: root/README.MSCHAP80
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2003-11-27 21:25:25 +0000
committerPaul Mackerras <paulus@samba.org>2003-11-27 21:25:25 +0000
commit7292aba5fee34d251b7caa488e02db1c48e75b2d (patch)
tree44d5d730c93b05d11373e114be3d2884c22aefe1 /README.MSCHAP80
parent216967db316a190aa012a57660a2aad8124452a7 (diff)
downloadppp-7292aba5fee34d251b7caa488e02db1c48e75b2d.tar.gz
Remove references to the old CHAP code.
Diffstat (limited to 'README.MSCHAP80')
-rw-r--r--README.MSCHAP8071
1 files changed, 0 insertions, 71 deletions
diff --git a/README.MSCHAP80 b/README.MSCHAP80
index 7c16f3e..3fcd566 100644
--- a/README.MSCHAP80
+++ b/README.MSCHAP80
@@ -192,77 +192,6 @@ from the other end. If you see pppd sending out LCP config requests
without getting any reply, try putting something in your chat script
to send the word CLIENT after the modem has connected.
-If everything compiles cleanly, but fails at authentication time, then
-it might be a case of the MD4 or DES code screwing up. The following
-small program can be used to test the MS-CHAP code to see if it
-produces a known response:
-
------------------
-#include <stdio.h>
-
-#include "pppd.h"
-#include "chap.h"
-#include "chap_ms.h"
-
-int main(argc, argv)
- int argc;
- char *argv[];
-{
- u_char challenge[8];
- int challengeInt[sizeof(challenge)];
- chap_state cstate;
- int i;
-
- if (argc != 3) {
- fprintf(stderr, "Usage: %s <16-hexchar challenge> <password>\n",
- argv[0]); exit(1);
- }
-
- sscanf(argv[1], "%2x%2x%2x%2x%2x%2x%2x%2x",
- challengeInt + 0, challengeInt + 1, challengeInt + 2,
- challengeInt + 3, challengeInt + 4, challengeInt + 5,
- challengeInt + 6, challengeInt + 7);
-
- for (i = 0; i < sizeof(challenge); i++)
- challenge[i] = (u_char)challengeInt[i];
-
- 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++) {
- if (i % 8 == 0)
- putchar('\n');
- printf("%02X ", (unsigned int)cstate.response[i]);
- }
-
- putchar('\n');
-
- exit(0);
-}
--------------
-
-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
-
-it should output the following:
-
- Response length is 49, response is:
- 00 00 00 00 00 00 00 00
- 00 00 00 00 00 00 00 00
- 00 00 00 00 00 00 00 00
- F4 D9 9D AF 82 64 DC 3C
- 53 F9 BC 92 14 B5 5D 9E
- 78 C4 21 48 9D B7 A8 B4
- 01
-
-if not, then either the DES library is not working, the MD4 code isn't
-working, or there are some problems with the port of the code in
-chap_ms.c.
-
-
STILL TO DO
A site using only MS-CHAP to authenticate has no need to store cleartext