OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / openswan / packaging / ocf / config-all.h
1 #ifndef _CONFIG_ALL_H_
2 /*
3  * Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
4  * Copyright (C) 2011              Paul Wouters <paul@xelerance.com>
5  * 
6  * This kernel module is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or (at your
9  * option) any later version.  See <http://www.fsf.org/copyleft/lgpl.txt>.
10  * 
11  * This kernel module is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
14  * License for more details.
15  *
16  * This is the OCF version. It builds support for 3 crypto subsystems, and KLIPS
17  * will use the first one found in the following order: OCF, CryptoAPI, inline
18  * Cryptoapi might support more ciphers then the other subsystems.
19  * Requires ocf kernel module - see http://ocf-linux.sf.net/ 
20  */
21
22 #define _CONFIG_ALL_H_  /* seen it, no need to see it again */
23
24 #define CONFIG_KLIPS 1
25
26 #ifndef CONFIG_KLIPS_AH
27 #define CONFIG_KLIPS_AH 1
28 #endif
29
30 #ifndef CONFIG_KLIPS_DEBUG 
31 #define CONFIG_KLIPS_DEBUG 1
32 #endif
33
34 #ifndef CONFIG_KLIPS_ESP
35 #define CONFIG_KLIPS_ESP 1
36 #endif
37
38 #ifndef CONFIG_KLIPS_IPCOMP
39 #define CONFIG_KLIPS_IPCOMP 1
40 #endif
41
42 #ifndef CONFIG_KLIPS_IPIP
43 #define CONFIG_KLIPS_IPIP 1
44 #endif
45
46 #ifndef CONFIG_KLIPS_AUTH_HMAC_MD5
47 #define CONFIG_KLIPS_AUTH_HMAC_MD5 1
48 #endif
49
50 #ifndef CONFIG_KLIPS_AUTH_HMAC_SHA1
51 #define CONFIG_KLIPS_AUTH_HMAC_SHA1 1
52 #endif 
53
54 #ifndef CONFIG_KLIPS_DYNDEV
55 #define CONFIG_KLIPS_DYNDEV 1
56 #endif
57
58 #ifndef CONFIG_KLIPS_ENC_3DES
59 #define CONFIG_KLIPS_ENC_3DES 1
60 #endif
61
62 /* no longer needed on 2.6.22 and newer */
63 #if 0
64 # ifndef CONFIG_IPSEC_NAT_TRAVERSAL
65 #  define CONFIG_IPSEC_NAT_TRAVERSAL 1
66 # endif
67 #endif
68 #undef CONFIG_IPSEC_NAT_TRAVERSAL
69
70 #ifndef CONFIG_KLIPS_ENC_AES
71 #define CONFIG_KLIPS_ENC_AES 1
72 #endif
73
74 /* enable cryptoapi as well */
75 #ifndef CONFIG_KLIPS_ENC_CRYPTOAPI
76 #define CONFIG_KLIPS_ENC_CRYPTOAPI 1
77 #endif
78
79 #define CONFIG_KLIPS_ALG_CRYPTOAPI #error
80 #define CONFIG_KLIPS_ALG_AES #error
81
82 /* requires ocf kernel module - see http://ocf-linux.sf.net */
83 #ifndef CONFIG_KLIPS_OCF
84 # define CONFIG_KLIPS_OCF 1
85 #endif
86
87 #ifndef CONFIG_KLIPS_ALG_AES_MAC
88 #define CONFIG_KLIPS_ALG_AES_MAC 1
89 #endif
90
91 /* ALGO: */
92 #if 0
93 /* goal: cleanup KLIPS code from hardcoded algos :} */
94 # undef CONFIG_KLIPS_AUTH_HMAC_MD5
95 # undef CONFIG_KLIPS_AUTH_HMAC_SHA1
96 # undef CONFIG_KLIPS_ENC_3DES
97 #endif
98
99 #ifndef CONFIG_KLIPS_ALG
100 #define CONFIG_KLIPS_ALG 1
101 #endif
102
103 #endif /* _CONFIG_ALL_H */