summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s23_clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s23_clnt.c')
-rw-r--r--src/lib/libssl/s23_clnt.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libssl/s23_clnt.c b/src/lib/libssl/s23_clnt.c
index 0ab56fa38d..30d97683a7 100644
--- a/src/lib/libssl/s23_clnt.c
+++ b/src/lib/libssl/s23_clnt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s23_clnt.c,v 1.37 2015/03/27 12:29:54 jsing Exp $ */ 1/* $OpenBSD: s23_clnt.c,v 1.38 2015/03/31 13:17:48 jsing 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 *
@@ -358,16 +358,6 @@ ssl23_client_hello(SSL *s)
358 SSL_R_NO_CIPHERS_AVAILABLE); 358 SSL_R_NO_CIPHERS_AVAILABLE);
359 return -1; 359 return -1;
360 } 360 }
361#ifdef OPENSSL_MAX_TLS1_2_CIPHER_LENGTH
362 /*
363 * Some servers hang if client hello > 256 bytes
364 * as hack workaround chop number of supported ciphers
365 * to keep it well below this if we use TLS v1.2
366 */
367 if (TLS1_get_version(s) >= TLS1_2_VERSION &&
368 i > OPENSSL_MAX_TLS1_2_CIPHER_LENGTH)
369 i = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1;
370#endif
371 s2n(i, p); 361 s2n(i, p);
372 p += i; 362 p += i;
373 363