]> git.ozlabs.org Git - ppp.git/blob - pppd/pppcrypt.h
Added EAP support with MD5-Challenge and SRP-SHA1 methods. Tested
[ppp.git] / pppd / pppcrypt.h
1 /*
2  * pppcrypt.c - PPP/DES linkage for MS-CHAP and EAP SRP-SHA1
3  *
4  * Extracted from chap_ms.c by James Carlson.
5  *
6  * Copyright (c) 1995 Eric Rosenquist, Strata Software Limited.
7  * http://www.strataware.com/
8  *
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms are permitted
12  * provided that the above copyright notice and this paragraph are
13  * duplicated in all such forms and that any documentation,
14  * advertising materials, and other materials related to such
15  * distribution and use acknowledge that the software was developed
16  * by Eric Rosenquist.  The name of the author may not be used to
17  * endorse or promote products derived from this software without
18  * specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
21  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
22  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23  */
24
25 #ifndef PPPCRYPT_H
26 #define PPPCRYPT_H
27
28 #ifdef HAVE_CRYPT_H
29 #include <crypt.h>
30 #endif
31
32 #ifndef USE_CRYPT
33 #include <des.h>
34 #endif
35
36 extern bool     DesSetkey __P((u_char *));
37 extern bool     DesEncrypt __P((u_char *, u_char *));
38 extern bool     DesDecrypt __P((u_char *, u_char *));
39
40 #endif /* PPPCRYPT_H */