summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_clnt.c
diff options
context:
space:
mode:
authordoug <>2015-08-27 06:21:15 +0000
committerdoug <>2015-08-27 06:21:15 +0000
commita7f1c6569618905a042efceca3edc3812bc607b0 (patch)
treeedcaf86fcb7a4c7c49e4f2bbefde1665cfd57458 /src/lib/libssl/s3_clnt.c
parent7ea97326ad345e697ded653d10df9832673def3d (diff)
downloadopenbsd-a7f1c6569618905a042efceca3edc3812bc607b0.tar.gz
openbsd-a7f1c6569618905a042efceca3edc3812bc607b0.tar.bz2
openbsd-a7f1c6569618905a042efceca3edc3812bc607b0.zip
Remove SSLv3 support from LibreSSL.
This is the first wave of SSLv3 removal which removes the main SSLv3 functions. Future commits will remove the rest of the SSLv3 support. Discussed the plan at c2k15. Input from jsing@, beck@, miod@, bcook@, sthen@, naddy@, and deraadt@. ok jsing@, beck@
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r--src/lib/libssl/s3_clnt.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c
index b739711732..30f679eac3 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.121 2015/07/29 19:16:09 miod Exp $ */ 1/* $OpenBSD: s3_clnt.c,v 1.122 2015/08/27 06:21:15 doug 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,12 +170,6 @@
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
179static const SSL_METHOD *ssl3_get_client_method(int ver); 173static const SSL_METHOD *ssl3_get_client_method(int ver);
180static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b); 174static int ca_dn_cmp(const X509_NAME * const *a, const X509_NAME * const *b);
181 175
@@ -211,17 +205,9 @@ const SSL_METHOD SSLv3_client_method_data = {
211 .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, 205 .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl,
212}; 206};
213 207
214const SSL_METHOD *
215SSLv3_client_method(void)
216{
217 return &SSLv3_client_method_data;
218}
219
220static const SSL_METHOD * 208static const SSL_METHOD *
221ssl3_get_client_method(int ver) 209ssl3_get_client_method(int ver)
222{ 210{
223 if (ver == SSL3_VERSION)
224 return (SSLv3_client_method());
225 return (NULL); 211 return (NULL);
226} 212}
227 213