summaryrefslogtreecommitdiff
path: root/dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-11-07 12:54:17 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-11-07 12:54:17 +0200
commit5a01792340999d37435f5000a3f6b8e0f2d11815 (patch)
tree4bcca1f73cc4ab721b3c31ea81585917f909ebc7 /dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch
parent86c8d1f28bd2b785ccbb28f41c4e0763d062ba2f (diff)
Added the full elimination of sabayon-version
Diffstat (limited to 'dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch')
-rw-r--r--dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch b/dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch
new file mode 100644
index 00000000..034da7d4
--- /dev/null
+++ b/dev-libs/openssl/files/openssl-1.0.1e-tls-ver-crash.patch
@@ -0,0 +1,34 @@
+https://bugs.gentoo.org/494816
+https://bugzilla.redhat.com/show_bug.cgi?id=1045363
+http://rt.openssl.org/Ticket/Display.html?id=3200&user=guest&pass=guest
+
+From ca989269a2876bae79393bd54c3e72d49975fc75 Mon Sep 17 00:00:00 2001
+From: "Dr. Stephen Henson" <steve@openssl.org>
+Date: Thu, 19 Dec 2013 14:37:39 +0000
+Subject: [PATCH] Use version in SSL_METHOD not SSL structure.
+
+When deciding whether to use TLS 1.2 PRF and record hash algorithms
+use the version number in the corresponding SSL_METHOD structure
+instead of the SSL structure. The SSL structure version is sometimes
+inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already.
+(CVE-2013-6449)
+---
+ ssl/s3_lib.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
+index bf832bb..c4ef273 100644
+--- a/ssl/s3_lib.c
++++ b/ssl/s3_lib.c
+@@ -4286,7 +4286,7 @@ need to go to SSL_ST_ACCEPT.
+ long ssl_get_algorithm2(SSL *s)
+ {
+ long alg2 = s->s3->tmp.new_cipher->algorithm2;
+- if (TLS1_get_version(s) >= TLS1_2_VERSION &&
++ if (s->method->version == TLS1_2_VERSION &&
+ alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF))
+ return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;
+ return alg2;
+--
+1.8.4.3
+