Cascade no-dgram from no-sock in Configure not e_os.h
authorMatt Caswell <matt@openssl.org>
Wed, 20 Apr 2016 10:24:49 +0000 (11:24 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 20 Apr 2016 13:52:46 +0000 (14:52 +0100)
e_os.h was defining OPENSSL_NO_DGRAM if OPENSSL_NO_SOCK was defined.
This causes link problems on Windows because the generated .def files
still contain the DGRAM symbols even though they have not been compiled.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configure
e_os.h

index a7b9ed564f9dcd092860a78638c2fb1bc43fe9af..367ede3648ae24bb96a1866bc298753a3d3e5663 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -364,7 +364,7 @@ my @disable_cascades = (
     "ec"               => [ "ecdsa", "ecdh" ],
 
     "dgram"            => [ "dtls", "sctp" ],
-    "sock"             => [ "sctp" ],
+    "sock"             => [ "dgram" ],
     "dtls"             => [ @dtls ],
 
     # SSL 3.0, (D)TLS 1.0 and TLS 1.1 require MD5 and SHA
diff --git a/e_os.h b/e_os.h
index 0124e5e67faa8c9cbd2fbb97fd0b9d33db89035d..f85b754b1207abefaf6159bec8168b360e9a83dc 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -392,10 +392,6 @@ extern FILE *_imp___iob;
 
 /*************/
 
-# if defined(OPENSSL_NO_SOCK) && !defined(OPENSSL_NO_DGRAM)
-#  define OPENSSL_NO_DGRAM
-# endif
-
 # ifdef USE_SOCKETS
 #  ifdef OPENSSL_NO_SOCK
 #  elif defined(WINDOWS) || defined(MSDOS)