From c003cb2cb3d8d80466378b7f01965b45396ade46 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Apr 2014 14:08:57 +0000 Subject: [PATCH] remove some code that is now unused after guenther's changes in 1.20. --- lib/libssl/s23_clnt.c | 17 +---------------- lib/libssl/src/ssl/s23_clnt.c | 17 +---------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/lib/libssl/s23_clnt.c b/lib/libssl/s23_clnt.c index a7b262229f6..196ef1dfade 100644 --- a/lib/libssl/s23_clnt.c +++ b/lib/libssl/s23_clnt.c @@ -250,21 +250,6 @@ end: return (ret); } -static int -ssl23_no_ssl2_ciphers(SSL *s) -{ - SSL_CIPHER *cipher; - STACK_OF(SSL_CIPHER) *ciphers; - int i; - ciphers = SSL_get_ciphers(s); - for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) { - cipher = sk_SSL_CIPHER_value(ciphers, i); - if (cipher->algorithm_ssl == SSL_SSLV2) - return 0; - } - return 1; -} - /* * Fill a ClientRandom or ServerRandom field of length len. Returns <= 0 * on failure, 1 on success. @@ -294,7 +279,7 @@ ssl23_client_hello(SSL *s) { unsigned char *buf; unsigned char *p, *d; - int i, ch_len; + int i; unsigned long l; int version = 0, version_major, version_minor; #ifndef OPENSSL_NO_COMP diff --git a/lib/libssl/src/ssl/s23_clnt.c b/lib/libssl/src/ssl/s23_clnt.c index a7b262229f6..196ef1dfade 100644 --- a/lib/libssl/src/ssl/s23_clnt.c +++ b/lib/libssl/src/ssl/s23_clnt.c @@ -250,21 +250,6 @@ end: return (ret); } -static int -ssl23_no_ssl2_ciphers(SSL *s) -{ - SSL_CIPHER *cipher; - STACK_OF(SSL_CIPHER) *ciphers; - int i; - ciphers = SSL_get_ciphers(s); - for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) { - cipher = sk_SSL_CIPHER_value(ciphers, i); - if (cipher->algorithm_ssl == SSL_SSLV2) - return 0; - } - return 1; -} - /* * Fill a ClientRandom or ServerRandom field of length len. Returns <= 0 * on failure, 1 on success. @@ -294,7 +279,7 @@ ssl23_client_hello(SSL *s) { unsigned char *buf; unsigned char *p, *d; - int i, ch_len; + int i; unsigned long l; int version = 0, version_major, version_minor; #ifndef OPENSSL_NO_COMP -- 2.20.1