summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s23_lib.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-04-15 21:47:56 +0000
committertedu <tedu@openbsd.org>2014-04-15 21:47:56 +0000
commitd5cfd8ef9515508b49d0becea543a35da559ad24 (patch)
treeb923da10e3df21bcc7bdd233d4e7a18d8f587042 /lib/libssl/s23_lib.c
parentthe VMS code is legion (diff)
downloadwireguard-openbsd-d5cfd8ef9515508b49d0becea543a35da559ad24.tar.xz
wireguard-openbsd-d5cfd8ef9515508b49d0becea543a35da559ad24.zip
remove ssl2 support even more completely.
in the process, always include ssl3 and tls1, we don't need config options for them. when the time comes to expire ssl3, it will be with an ax. checked by miod
Diffstat (limited to 'lib/libssl/s23_lib.c')
-rw-r--r--lib/libssl/s23_lib.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/libssl/s23_lib.c b/lib/libssl/s23_lib.c
index 3a4d5a6ecb0..74afe01d944 100644
--- a/lib/libssl/s23_lib.c
+++ b/lib/libssl/s23_lib.c
@@ -69,11 +69,7 @@ ssl23_default_timeout(void)
int
ssl23_num_ciphers(void)
{
- return(ssl3_num_ciphers()
-#ifndef OPENSSL_NO_SSL2
- + ssl2_num_ciphers()
-#endif
- );
+ return(ssl3_num_ciphers());
}
const SSL_CIPHER
@@ -84,11 +80,7 @@ const SSL_CIPHER
if (u < uu)
return (ssl3_get_cipher(u));
else
-#ifndef OPENSSL_NO_SSL2
- return (ssl2_get_cipher(u - uu));
-#else
- return (NULL);
-#endif
+ return (NULL);
}
/* This function needs to check if the ciphers required are actually
@@ -99,10 +91,6 @@ const SSL_CIPHER
const SSL_CIPHER *cp;
cp = ssl3_get_cipher_by_char(p);
-#ifndef OPENSSL_NO_SSL2
- if (cp == NULL)
- cp = ssl2_get_cipher_by_char(p);
-#endif
return (cp);
}