fixes for common config functions
[openwrt.git] / package / openswan / patches / 102-new_module_param.patch
1 diff -ruN openswan-2.4.5-old/linux/net/ipsec/aes/ipsec_alg_aes.c openswan-2.4.5-new/linux/net/ipsec/aes/ipsec_alg_aes.c
2 --- openswan-2.4.5-old/linux/net/ipsec/aes/ipsec_alg_aes.c 2005-05-20 18:48:55.000000000 +0200
3 +++ openswan-2.4.5-new/linux/net/ipsec/aes/ipsec_alg_aes.c 2006-06-20 00:17:57.000000000 +0200
4 @@ -59,12 +59,20 @@
5 static int keymaxbits=0;
6 #if defined(CONFIG_KLIPS_ENC_AES_MODULE)
7 MODULE_AUTHOR("JuanJo Ciarlante <jjo-ipsec@mendoza.gov.ar>");
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52)
9 +module_param(debug_aes, int, 0);
10 +module_param(test_aes, int, 0);
11 +module_param(excl_aes, int, 0);
12 +module_param(keyminbits, int, 0);
13 +module_param(keymaxbits, int, 0);
14 +#else
15 MODULE_PARM(debug_aes, "i");
16 MODULE_PARM(test_aes, "i");
17 MODULE_PARM(excl_aes, "i");
18 MODULE_PARM(keyminbits, "i");
19 MODULE_PARM(keymaxbits, "i");
20 #endif
21 +#endif
22
23 #if CONFIG_KLIPS_ENC_AES_MAC
24 #include "crypto/aes_xcbc_mac.h"
25 @@ -79,8 +87,12 @@
26 #else
27 static int auth_id=9;
28 #endif
29 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52)
30 +module_param(auth_id, int, 0);
31 +#else
32 MODULE_PARM(auth_id, "i");
33 #endif
34 +#endif
35
36 #define ESP_AES 12 /* truely _constant_ :) */
37
This page took 0.053697 seconds and 5 git commands to generate.