summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-20 11:24:49 +0100
committerMatt Caswell <matt@openssl.org>2016-04-20 14:52:46 +0100
commit505f74ca34ea59f18ec980d1fd9150d8e348d1e3 (patch)
tree9ec756807191c0cfb5c6c18beb8fddfcc014d3f5
parent9fb80e3ceb66ae07d9ed9be133bf01f6d7116ebc (diff)
Cascade no-dgram from no-sock in Configure not e_os.h
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>
-rwxr-xr-xConfigure2
-rw-r--r--e_os.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/Configure b/Configure
index a7b9ed564f..367ede3648 100755
--- 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 0124e5e67f..f85b754b12 100644
--- 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)