openssl: fix CVE-2016-2177

This commit is contained in:
Alexey Shmalko
2016-08-23 03:41:03 +03:00
parent 298b479c22
commit 6e7ca9272e
3 changed files with 546 additions and 2 deletions
+11 -2
View File
@@ -8,7 +8,7 @@ let
opensslCrossSystem = stdenv.cross.openssl.system or
(throw "openssl needs its platform name cross building");
common = { version, sha256 }: stdenv.mkDerivation rec {
common = args@{ version, sha256, patches ? [] }: stdenv.mkDerivation rec {
name = "openssl-${version}";
src = fetchurl {
@@ -17,7 +17,8 @@ let
};
patches =
[ ./use-etc-ssl-certs.patch ]
args.patches
++ [ ./use-etc-ssl-certs.patch ]
++ optional stdenv.isCygwin ./1.0.1-cygwin64.patch
++ optional
(versionOlder version "1.0.2" && (stdenv.isDarwin || (stdenv ? cross && stdenv.cross.libc == "libSystem")))
@@ -107,11 +108,19 @@ in {
openssl_1_0_1 = common {
version = "1.0.1t";
sha256 = "4a6ee491a2fdb22e519c76fdc2a628bb3cec12762cd456861d207996c8a07088";
patches = [
# https://git.openssl.org/?p=openssl.git;a=commit;h=6f35f6deb5ca7daebe289f86477e061ce3ee5f46
./1.0.1-CVE-2016-2177.diff
];
};
openssl_1_0_2 = common {
version = "1.0.2h";
sha256 = "1d4007e53aad94a5b2002fe045ee7bb0b3d98f1a47f8b2bc851dcd1c74332919";
patches = [
# https://git.openssl.org/?p=openssl.git;a=commit;h=a004e72b95835136d3f1ea90517f706c24c03da7
./1.0.2-CVE-2016-2177.diff
];
};
}