summaryrefslogtreecommitdiff
path: root/lib/libssl/s23_lib.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-15 21:47:57 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-15 21:47:57 +0000
commit27c3072c40c4a56c9ef1955e713bd59fe48329e0 (patch)
tree0170b76e80441fd7616121e47544809ddc67d792 /lib/libssl/s23_lib.c
parenta1506b07b3a6b8c98c878b9030e2e1f914431d37 (diff)
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);
}