diff options
author | miod <> | 2015-07-29 19:16:09 +0000 |
---|---|---|
committer | miod <> | 2015-07-29 19:16:09 +0000 |
commit | c399ec1a5a1e334ca2ae5a449ca396abc5b4d043 (patch) | |
tree | 36ff459bed9e875f3dcd4c1b4dd20e6d941ed862 /src/lib | |
parent | 6a72ca90e8e4257c1656bef69f6deeeac4ac3cb6 (diff) | |
download | openbsd-c399ec1a5a1e334ca2ae5a449ca396abc5b4d043.tar.gz openbsd-c399ec1a5a1e334ca2ae5a449ca396abc5b4d043.tar.bz2 openbsd-c399ec1a5a1e334ca2ae5a449ca396abc5b4d043.zip |
Add linker warnings in case SSLv3_{,client,server}_method are referenced.
Use of this symbols proves the existence of a code path willingly using SSLv3,
even with OPENSSL_NO_SSL3 being defined, which hints that it needs fixing.
Discussed with the LibreSSL cabal during c2k15; ok deraadt@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/s3_srvr.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_clnt.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_meth.c | 8 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_srvr.c | 8 |
5 files changed, 35 insertions, 5 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 9a5ef826f6..b739711732 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.120 2015/07/19 07:34:52 doug Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.121 2015/07/29 19:16:09 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -170,6 +170,12 @@ | |||
170 | 170 | ||
171 | #include "bytestring.h" | 171 | #include "bytestring.h" |
172 | 172 | ||
173 | #ifdef __OpenBSD__ | ||
174 | #include <sys/cdefs.h> | ||
175 | __warn_references(SSLv3_client_method, | ||
176 | "SSLv3_client_method() enables the use of insecure protocols"); | ||
177 | #endif | ||
178 | |||
173 | static const SSL_METHOD *ssl3_get_client_method(int ver); | 179 | static const SSL_METHOD *ssl3_get_client_method(int ver); |
174 | static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b); | 180 | static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b); |
175 | 181 | ||
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c index cd5bc2a6cb..7d2ec4d132 100644 --- a/src/lib/libssl/s3_srvr.c +++ b/src/lib/libssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.111 2015/07/18 01:42:26 doug Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.112 2015/07/29 19:16:09 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -166,6 +166,12 @@ | |||
166 | 166 | ||
167 | #include "bytestring.h" | 167 | #include "bytestring.h" |
168 | 168 | ||
169 | #ifdef __OpenBSD__ | ||
170 | #include <sys/cdefs.h> | ||
171 | __warn_references(SSLv3_server_method, | ||
172 | "SSLv3_server_method() enables the use of insecure protocols"); | ||
173 | #endif | ||
174 | |||
169 | static const SSL_METHOD *ssl3_get_server_method(int ver); | 175 | static const SSL_METHOD *ssl3_get_server_method(int ver); |
170 | 176 | ||
171 | const SSL_METHOD SSLv3_server_method_data = { | 177 | const SSL_METHOD SSLv3_server_method_data = { |
diff --git a/src/lib/libssl/src/ssl/s3_clnt.c b/src/lib/libssl/src/ssl/s3_clnt.c index 9a5ef826f6..b739711732 100644 --- a/src/lib/libssl/src/ssl/s3_clnt.c +++ b/src/lib/libssl/src/ssl/s3_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_clnt.c,v 1.120 2015/07/19 07:34:52 doug Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.121 2015/07/29 19:16:09 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -170,6 +170,12 @@ | |||
170 | 170 | ||
171 | #include "bytestring.h" | 171 | #include "bytestring.h" |
172 | 172 | ||
173 | #ifdef __OpenBSD__ | ||
174 | #include <sys/cdefs.h> | ||
175 | __warn_references(SSLv3_client_method, | ||
176 | "SSLv3_client_method() enables the use of insecure protocols"); | ||
177 | #endif | ||
178 | |||
173 | static const SSL_METHOD *ssl3_get_client_method(int ver); | 179 | static const SSL_METHOD *ssl3_get_client_method(int ver); |
174 | static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b); | 180 | static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b); |
175 | 181 | ||
diff --git a/src/lib/libssl/src/ssl/s3_meth.c b/src/lib/libssl/src/ssl/s3_meth.c index 8ad4efa7a8..c5f043e944 100644 --- a/src/lib/libssl/src/ssl/s3_meth.c +++ b/src/lib/libssl/src/ssl/s3_meth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_meth.c,v 1.13 2015/02/06 08:30:23 jsing Exp $ */ | 1 | /* $OpenBSD: s3_meth.c,v 1.14 2015/07/29 19:16:09 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -62,6 +62,12 @@ | |||
62 | 62 | ||
63 | #include "ssl_locl.h" | 63 | #include "ssl_locl.h" |
64 | 64 | ||
65 | #ifdef __OpenBSD__ | ||
66 | #include <sys/cdefs.h> | ||
67 | __warn_references(SSLv3_method, | ||
68 | "SSLv3_method() enables the use of insecure protocols"); | ||
69 | #endif | ||
70 | |||
65 | static const SSL_METHOD *ssl3_get_method(int ver); | 71 | static const SSL_METHOD *ssl3_get_method(int ver); |
66 | 72 | ||
67 | const SSL_METHOD SSLv3_method_data = { | 73 | const SSL_METHOD SSLv3_method_data = { |
diff --git a/src/lib/libssl/src/ssl/s3_srvr.c b/src/lib/libssl/src/ssl/s3_srvr.c index cd5bc2a6cb..7d2ec4d132 100644 --- a/src/lib/libssl/src/ssl/s3_srvr.c +++ b/src/lib/libssl/src/ssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.111 2015/07/18 01:42:26 doug Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.112 2015/07/29 19:16:09 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -166,6 +166,12 @@ | |||
166 | 166 | ||
167 | #include "bytestring.h" | 167 | #include "bytestring.h" |
168 | 168 | ||
169 | #ifdef __OpenBSD__ | ||
170 | #include <sys/cdefs.h> | ||
171 | __warn_references(SSLv3_server_method, | ||
172 | "SSLv3_server_method() enables the use of insecure protocols"); | ||
173 | #endif | ||
174 | |||
169 | static const SSL_METHOD *ssl3_get_server_method(int ver); | 175 | static const SSL_METHOD *ssl3_get_server_method(int ver); |
170 | 176 | ||
171 | const SSL_METHOD SSLv3_server_method_data = { | 177 | const SSL_METHOD SSLv3_server_method_data = { |