X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fpppcrypt.h;fp=pppd%2Fpppcrypt.h;h=76fa68aaeaa1ba7b35999feba9b9882eaf306b79;hb=d741a3b912f17d84dc8dc87474e0b989c775de50;hp=0000000000000000000000000000000000000000;hpb=767b224b09e000895b0918937edd19041e40e6f6;p=ppp.git diff --git a/pppd/pppcrypt.h b/pppd/pppcrypt.h new file mode 100644 index 0000000..76fa68a --- /dev/null +++ b/pppd/pppcrypt.h @@ -0,0 +1,40 @@ +/* + * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1 + * + * Extracted from chap_ms.c by James Carlson. + * + * Copyright (c) 1995 Eric Rosenquist, Strata Software Limited. + * http://www.strataware.com/ + * + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by Eric Rosenquist. The name of the author may not be used to + * endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ + +#ifndef PPPCRYPT_H +#define PPPCRYPT_H + +#ifdef HAVE_CRYPT_H +#include +#endif + +#ifndef USE_CRYPT +#include +#endif + +extern bool DesSetkey __P((u_char *)); +extern bool DesEncrypt __P((u_char *, u_char *)); +extern bool DesDecrypt __P((u_char *, u_char *)); + +#endif /* PPPCRYPT_H */