summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_srvr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_srvr.c')
-rw-r--r--src/lib/libssl/s3_srvr.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c
index 7d2ec4d132..5574884b89 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.112 2015/07/29 19:16:09 miod Exp $ */ 1/* $OpenBSD: s3_srvr.c,v 1.113 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 *
@@ -166,12 +166,6 @@
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
175static const SSL_METHOD *ssl3_get_server_method(int ver); 169static const SSL_METHOD *ssl3_get_server_method(int ver);
176 170
177const SSL_METHOD SSLv3_server_method_data = { 171const SSL_METHOD SSLv3_server_method_data = {
@@ -206,17 +200,9 @@ const SSL_METHOD SSLv3_server_method_data = {
206 .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl, 200 .ssl_ctx_callback_ctrl = ssl3_ctx_callback_ctrl,
207}; 201};
208 202
209const SSL_METHOD *
210SSLv3_server_method(void)
211{
212 return &SSLv3_server_method_data;
213}
214
215static const SSL_METHOD * 203static const SSL_METHOD *
216ssl3_get_server_method(int ver) 204ssl3_get_server_method(int ver)
217{ 205{
218 if (ver == SSL3_VERSION)
219 return (SSLv3_server_method());
220 return (NULL); 206 return (NULL);
221} 207}
222 208