3 * Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
4 * Copyright (C) 2011 Paul Wouters <paul@xelerance.com>
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>.
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.
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/
22 #define _CONFIG_ALL_H_ /* seen it, no need to see it again */
24 #define CONFIG_KLIPS 1
26 #ifndef CONFIG_KLIPS_AH
27 #define CONFIG_KLIPS_AH 1
30 #ifndef CONFIG_KLIPS_DEBUG
31 #define CONFIG_KLIPS_DEBUG 1
34 #ifndef CONFIG_KLIPS_ESP
35 #define CONFIG_KLIPS_ESP 1
38 #ifndef CONFIG_KLIPS_IPCOMP
39 #define CONFIG_KLIPS_IPCOMP 1
42 #ifndef CONFIG_KLIPS_IPIP
43 #define CONFIG_KLIPS_IPIP 1
46 #ifndef CONFIG_KLIPS_AUTH_HMAC_MD5
47 #define CONFIG_KLIPS_AUTH_HMAC_MD5 1
50 #ifndef CONFIG_KLIPS_AUTH_HMAC_SHA1
51 #define CONFIG_KLIPS_AUTH_HMAC_SHA1 1
54 #ifndef CONFIG_KLIPS_DYNDEV
55 #define CONFIG_KLIPS_DYNDEV 1
58 #ifndef CONFIG_KLIPS_ENC_3DES
59 #define CONFIG_KLIPS_ENC_3DES 1
62 /* no longer needed on 2.6.22 and newer */
64 # ifndef CONFIG_IPSEC_NAT_TRAVERSAL
65 # define CONFIG_IPSEC_NAT_TRAVERSAL 1
68 #undef CONFIG_IPSEC_NAT_TRAVERSAL
70 #ifndef CONFIG_KLIPS_ENC_AES
71 #define CONFIG_KLIPS_ENC_AES 1
74 /* enable cryptoapi as well */
75 #ifndef CONFIG_KLIPS_ENC_CRYPTOAPI
76 #define CONFIG_KLIPS_ENC_CRYPTOAPI 1
79 #define CONFIG_KLIPS_ALG_CRYPTOAPI #error
80 #define CONFIG_KLIPS_ALG_AES #error
82 /* requires ocf kernel module - see http://ocf-linux.sf.net */
83 #ifndef CONFIG_KLIPS_OCF
84 # define CONFIG_KLIPS_OCF 1
87 #ifndef CONFIG_KLIPS_ALG_AES_MAC
88 #define CONFIG_KLIPS_ALG_AES_MAC 1
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
99 #ifndef CONFIG_KLIPS_ALG
100 #define CONFIG_KLIPS_ALG 1
103 #endif /* _CONFIG_ALL_H */