mschap_test.c revision eedefb957fd12dc52be22145a83874a71050e784
/*
* Test MS-CHAPv1 library code.
*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Originally from the README.MSCHAP80 file written by:
* Eric Rosenquist rosenqui@strataware.com
* (updated by Paul Mackerras)
* (updated by Al Longyear)
* (updated by Farrell Woods)
*/
#include <stdio.h>
#include "pppd.h"
#include "chap.h"
#include "chap_ms.h"
#pragma ident "%Z%%M% %I% %E% SMI"
static void
{
int i;
for (i = 0; i < cstate->resp_length; i++) {
if (i % 8 == 0)
putchar('\n');
}
putchar('\n');
}
int argc;
char *argv[];
{
int challengeInt[sizeof(challenge)];
int i;
if (argc != 3) {
}
for (i = 0; i < sizeof(challenge); i++)
#ifdef MSLANMAN
#else
#endif
printf("Cannot validate own MS-CHAPv1 response.\n");
#ifdef MSLANMAN
printf("Cannot validate own LAN Manager response.\n");
#endif
#ifdef CHAPMSV2
printf("Cannot validate own MS-CHAPv2 response.\n");
#endif
return (0);
}