Skip to content

Commit

Permalink
openconnect: patch CVE-2020-12105 & CVE-2020-12823
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Jul 10, 2020
1 parent 02a83b1 commit 58f5c23
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/tools/networking/openconnect/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, fetchgit, darwin } :
{ stdenv, fetchurl, fetchpatch, pkgconfig, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, fetchgit, darwin } :

assert (openssl != null) == (gnutls == null);

Expand All @@ -19,6 +19,19 @@ in stdenv.mkDerivation rec {
sha256 = "14i9q727c2zc9xhzp1a9hz3gzb5lwgsslbhircm84dnbs192jp1k";
};

patches = [
(fetchpatch {
name = "CVE-2020-12105.patch";
url = "https://gitlab.com/openconnect/openconnect/-/merge_requests/96.patch";
sha256 = "19ra55jql2f2sim9kkgybrm4abz28iax92iwpijiipz5lk2jz0ai";
})
(fetchpatch {
name = "CVE-2020-12823.patch";
url = "https://gitlab.com/openconnect/openconnect/-/merge_requests/108.patch";
sha256 = "1ycw0b7wbj6byb151vlyywr0y3x0prsyxal5gdds5xcsdr5s9va3";
})
];

outputs = [ "out" "dev" ];

configureFlags = [
Expand Down

0 comments on commit 58f5c23

Please sign in to comment.