diff options
| author | jsing <> | 2015-03-31 13:17:48 +0000 |
|---|---|---|
| committer | jsing <> | 2015-03-31 13:17:48 +0000 |
| commit | 3ae32b082287786588f78075822ef3789949ab74 (patch) | |
| tree | e8ced55c09cfc7ee22c26d09ac692040a9221168 /src | |
| parent | d911205597fea0017dc6505aaff010cc33739246 (diff) | |
| download | openbsd-3ae32b082287786588f78075822ef3789949ab74.tar.gz openbsd-3ae32b082287786588f78075822ef3789949ab74.tar.bz2 openbsd-3ae32b082287786588f78075822ef3789949ab74.zip | |
Nuke the OPENSSL_MAX_TLS1_2_CIPHER_LENGTH hack - this has to be enabled at
compile time, which we do not do and are unlikely to ever do. Additionally,
there are two runtime configurable alternatives that exist.
ok bcook@ doug@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/s23_clnt.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/s3_clnt.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s23_clnt.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/s3_clnt.c | 12 |
4 files changed, 4 insertions, 44 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 | ||
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 07d2eb583a..8a137056be 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_clnt.c,v 1.110 2015/03/27 12:29:54 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.111 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 | * |
| @@ -710,16 +710,6 @@ ssl3_client_hello(SSL *s) | |||
| 710 | SSL_R_NO_CIPHERS_AVAILABLE); | 710 | SSL_R_NO_CIPHERS_AVAILABLE); |
| 711 | goto err; | 711 | goto err; |
| 712 | } | 712 | } |
| 713 | #ifdef OPENSSL_MAX_TLS1_2_CIPHER_LENGTH | ||
| 714 | /* | ||
| 715 | * Some servers hang if client hello > 256 bytes | ||
| 716 | * as hack workaround chop number of supported ciphers | ||
| 717 | * to keep it well below this if we use TLS v1.2 | ||
| 718 | */ | ||
| 719 | if (TLS1_get_version(s) >= TLS1_2_VERSION && | ||
| 720 | i > OPENSSL_MAX_TLS1_2_CIPHER_LENGTH) | ||
| 721 | i = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1; | ||
| 722 | #endif | ||
| 723 | s2n(i, p); | 713 | s2n(i, p); |
| 724 | p += i; | 714 | p += i; |
| 725 | 715 | ||
diff --git a/src/lib/libssl/src/ssl/s23_clnt.c b/src/lib/libssl/src/ssl/s23_clnt.c index 0ab56fa38d..30d97683a7 100644 --- a/src/lib/libssl/src/ssl/s23_clnt.c +++ b/src/lib/libssl/src/ssl/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 | ||
diff --git a/src/lib/libssl/src/ssl/s3_clnt.c b/src/lib/libssl/src/ssl/s3_clnt.c index 07d2eb583a..8a137056be 100644 --- a/src/lib/libssl/src/ssl/s3_clnt.c +++ b/src/lib/libssl/src/ssl/s3_clnt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s3_clnt.c,v 1.110 2015/03/27 12:29:54 jsing Exp $ */ | 1 | /* $OpenBSD: s3_clnt.c,v 1.111 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 | * |
| @@ -710,16 +710,6 @@ ssl3_client_hello(SSL *s) | |||
| 710 | SSL_R_NO_CIPHERS_AVAILABLE); | 710 | SSL_R_NO_CIPHERS_AVAILABLE); |
| 711 | goto err; | 711 | goto err; |
| 712 | } | 712 | } |
| 713 | #ifdef OPENSSL_MAX_TLS1_2_CIPHER_LENGTH | ||
| 714 | /* | ||
| 715 | * Some servers hang if client hello > 256 bytes | ||
| 716 | * as hack workaround chop number of supported ciphers | ||
| 717 | * to keep it well below this if we use TLS v1.2 | ||
| 718 | */ | ||
| 719 | if (TLS1_get_version(s) >= TLS1_2_VERSION && | ||
| 720 | i > OPENSSL_MAX_TLS1_2_CIPHER_LENGTH) | ||
| 721 | i = OPENSSL_MAX_TLS1_2_CIPHER_LENGTH & ~1; | ||
| 722 | #endif | ||
| 723 | s2n(i, p); | 713 | s2n(i, p); |
| 724 | p += i; | 714 | p += i; |
| 725 | 715 | ||
