fix kernel modules compile (as in [13724])
[openwrt-10.03/.git] / package / wpa_supplicant / patches / 100-timestamp_check.patch
1 Index: wpa_supplicant-0.6.6/src/tls/x509v3.c
2 ===================================================================
3 --- wpa_supplicant-0.6.6.orig/src/tls/x509v3.c  2008-02-23 03:45:24.000000000 +0100
4 +++ wpa_supplicant-0.6.6/src/tls/x509v3.c       2008-07-09 12:47:19.000000000 +0200
5 @@ -1591,8 +1591,11 @@
6                 if (chain_trusted)
7                         continue;
8  
9 -               if ((unsigned long) now.sec <
10 +               if (
11 +#ifndef NO_TIMESTAMP_CHECK
12 +                   (unsigned long) now.sec <
13                     (unsigned long) cert->not_before ||
14 +#endif
15                     (unsigned long) now.sec >
16                     (unsigned long) cert->not_after) {
17                         wpa_printf(MSG_INFO, "X509: Certificate not valid "