]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix and work around some MinGW compilation issues
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 20 Nov 2013 21:12:03 +0000 (23:12 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 20 Nov 2013 21:12:33 +0000 (23:12 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/ap/hostapd.h
src/crypto/tls_openssl.c

index 3dac6eaef5af4c182a0b6a30ef7c38de5e89b056..c25917dd9afe79cf0fd5617b19bf155400b5cb36 100644 (file)
@@ -44,7 +44,9 @@ struct hapd_interfaces {
        int global_ctrl_sock;
        char *global_iface_path;
        char *global_iface_name;
+#ifndef CONFIG_NATIVE_WINDOWS
        gid_t ctrl_iface_group;
+#endif /* CONFIG_NATIVE_WINDOWS */
        struct hostapd_iface **iface;
        struct hostapd_dynamic_iface **dynamic_iface;
 
index 3c5863465c83e77412d77795f2401a041129d14e..7e1056c9060b2ba8e78acbed02e108e25d82e9cd 100644 (file)
@@ -1136,6 +1136,7 @@ static int tls_match_altsubject(X509 *cert, const char *match)
 }
 
 
+#ifndef CONFIG_NATIVE_WINDOWS
 static int domain_suffix_match(const u8 *val, size_t len, const char *match)
 {
        size_t i, match_len;
@@ -1165,10 +1166,15 @@ static int domain_suffix_match(const u8 *val, size_t len, const char *match)
        wpa_printf(MSG_DEBUG, "TLS: Reject due to incomplete label match");
        return 0;
 }
+#endif /* CONFIG_NATIVE_WINDOWS */
 
 
 static int tls_match_suffix(X509 *cert, const char *match)
 {
+#ifdef CONFIG_NATIVE_WINDOWS
+       /* wincrypt.h has conflicting X509_NAME definition */
+       return -1;
+#else /* CONFIG_NATIVE_WINDOWS */
        GENERAL_NAME *gen;
        void *ext;
        int i;
@@ -1224,6 +1230,7 @@ static int tls_match_suffix(X509 *cert, const char *match)
 
        wpa_printf(MSG_DEBUG, "TLS: No CommonName suffix match found");
        return 0;
+#endif /* CONFIG_NATIVE_WINDOWS */
 }