charon-systemd: Don't use atexit() to deinitialize the daemon
[strongswan.git] / testing / scripts / recipes / patches / wpa_supplicant-eap-tnc
1 diff -urN wpa_supplicant-2.0.ori/src/eap_peer/tncc.c wpa_supplicant-2.0/src/eap_peer/tncc.c
2 --- wpa_supplicant-2.0.ori/src/eap_peer/tncc.c  2013-01-12 16:42:53.000000000 +0100
3 +++ wpa_supplicant-2.0/src/eap_peer/tncc.c      2013-03-23 13:10:22.151059154 +0100
4 @@ -465,7 +465,7 @@
5                 return -1;
6         }
7  #else /* CONFIG_NATIVE_WINDOWS */
8 -       imc->dlhandle = dlopen(imc->path, RTLD_LAZY);
9 +       imc->dlhandle = dlopen(imc->path, RTLD_LAZY | RTLD_GLOBAL);
10         if (imc->dlhandle == NULL) {
11                 wpa_printf(MSG_ERROR, "TNC: Failed to open IMC '%s' (%s): %s",
12                            imc->name, imc->path, dlerror());
13 diff -urN wpa_supplicant-2.0.ori/wpa_supplicant/defconfig wpa_supplicant-2.0/wpa_supplicant/defconfig
14 --- wpa_supplicant-2.0.ori/wpa_supplicant/defconfig     2013-01-12 16:42:53.000000000 +0100
15 +++ wpa_supplicant-2.0/wpa_supplicant/defconfig 2013-03-23 13:06:08.759052370 +0100
16 @@ -86,7 +86,7 @@
17  CONFIG_DRIVER_WEXT=y
18  
19  # Driver interface for Linux drivers using the nl80211 kernel interface
20 -CONFIG_DRIVER_NL80211=y
21 +#CONFIG_DRIVER_NL80211=y
22  
23  # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
24  #CONFIG_DRIVER_BSD=y
25 @@ -193,7 +193,7 @@
26  #CONFIG_EAP_GPSK_SHA256=y
27  
28  # EAP-TNC and related Trusted Network Connect support (experimental)
29 -#CONFIG_EAP_TNC=y
30 +CONFIG_EAP_TNC=y
31  
32  # Wi-Fi Protected Setup (WPS)
33  #CONFIG_WPS=y
34 diff -urN wpa_supplicant-2.0.ori/wpa_supplicant/Makefile wpa_supplicant-2.0/wpa_supplicant/Makefile
35 --- wpa_supplicant-2.0.ori/wpa_supplicant/Makefile      2013-01-12 16:42:53.000000000 +0100
36 +++ wpa_supplicant-2.0/wpa_supplicant/Makefile  2013-03-23 13:06:08.759052370 +0100
37 @@ -6,8 +6,8 @@
38  CFLAGS = -MMD -O2 -Wall -g
39  endif
40  
41 -export LIBDIR ?= /usr/local/lib/
42 -export BINDIR ?= /usr/local/sbin/
43 +export LIBDIR ?= /usr/lib/
44 +export BINDIR ?= /usr/sbin/
45  PKG_CONFIG ?= pkg-config
46  
47  CFLAGS += -I../src