cryptopp: bump to version 6.1.0
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 4 Mar 2018 09:06:16 +0000 (10:06 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 5 Mar 2018 20:18:44 +0000 (21:18 +0100)
Remove patch (applied upstream)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cryptopp/0001-Fix-possible-DoS-in-ASN.1-decoders-CVE-2016-9939.patch [deleted file]
package/cryptopp/cryptopp.hash
package/cryptopp/cryptopp.mk

diff --git a/package/cryptopp/0001-Fix-possible-DoS-in-ASN.1-decoders-CVE-2016-9939.patch b/package/cryptopp/0001-Fix-possible-DoS-in-ASN.1-decoders-CVE-2016-9939.patch
deleted file mode 100644 (file)
index 2d0f1d9..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-From 3d9181d7bdd8e491f745dbc9e34bd20b6f6da069 Mon Sep 17 00:00:00 2001
-From: Gergely Nagy <ngg@tresorit.com>
-Date: Wed, 14 Dec 2016 13:19:01 +0100
-Subject: [PATCH] Fix possible DoS in ASN.1 decoders (CVE-2016-9939)
-
-Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
----
- asn.cpp | 10 ++++++++++
- asn.h   |  2 ++
- 2 files changed, 12 insertions(+)
-
-diff --git a/asn.cpp b/asn.cpp
-index 297ff01..2e923ef 100644
---- a/asn.cpp
-+++ b/asn.cpp
-@@ -123,6 +123,8 @@ size_t BERDecodeOctetString(BufferedTransformation &bt, SecByteBlock &str)
-       size_t bc;\r
-       if (!BERLengthDecode(bt, bc))\r
-               BERDecodeError();\r
-+      if (bc > bt.MaxRetrievable())\r
-+              BERDecodeError();\r
\r
-       str.New(bc);\r
-       if (bc != bt.Get(str, bc))\r
-@@ -139,6 +141,8 @@ size_t BERDecodeOctetString(BufferedTransformation &bt, BufferedTransformation &
-       size_t bc;\r
-       if (!BERLengthDecode(bt, bc))\r
-               BERDecodeError();\r
-+      if (bc > bt.MaxRetrievable())\r
-+              BERDecodeError();\r
\r
-       bt.TransferTo(str, bc);\r
-       return bc;\r
-@@ -161,6 +165,8 @@ size_t BERDecodeTextString(BufferedTransformation &bt, std::string &str, byte as
-       size_t bc;\r
-       if (!BERLengthDecode(bt, bc))\r
-               BERDecodeError();\r
-+      if (bc > bt.MaxRetrievable())\r
-+              BERDecodeError();\r
\r
-       SecByteBlock temp(bc);\r
-       if (bc != bt.Get(temp, bc))\r
-@@ -188,6 +194,10 @@ size_t BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, unsigne
-       size_t bc;\r
-       if (!BERLengthDecode(bt, bc))\r
-               BERDecodeError();\r
-+      if (bc == 0)\r
-+              BERDecodeError();\r
-+      if (bc > bt.MaxRetrievable())\r
-+              BERDecodeError();\r
\r
-       byte unused;\r
-       if (!bt.Get(unused))\r
-diff --git a/asn.h b/asn.h
-index ed9de52..33f0dd0 100644
---- a/asn.h
-+++ b/asn.h
-@@ -498,6 +498,8 @@ void BERDecodeUnsigned(BufferedTransformation &in, T &w, byte asnTag = INTEGER,
-       bool definite = BERLengthDecode(in, bc);\r
-       if (!definite)\r
-               BERDecodeError();\r
-+      if (bc > in.MaxRetrievable())\r
-+              BERDecodeError();\r
\r
-       SecByteBlock buf(bc);\r
\r
--- 
-2.10.2
-
index 577638c1c9450a4b68bbebbf58f4843ea932ff02..d124e11a815b7de2040d94bfb6bf852230c06618 100644 (file)
@@ -1,2 +1,5 @@
-# Locally computed
-sha256  a75ef486fe3128008bbb201efee3dcdcffbe791120952910883b26337ec32c34  cryptopp565.zip
+# Hash from: https://www.cryptopp.com/release610.html:
+sha256  21289d2511101a9350c87c8eb1f4982d4a266e8037b19dab79a32cc13ea108c7  cryptopp610.zip
+
+# Hash for license file:
+sha256  fe5f5f187e6e38ac2f833956fc5c4cab2df08797cff07f540e4ee74f12f7ee5b  License.txt
index 4b121aef2dbee46efe6461381a84d90bc34c6eaa..d7aabf04b808338ff6f8301ad1b627d766bf02fd 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-CRYPTOPP_VERSION = 5.6.5
+CRYPTOPP_VERSION = 6.1.0
 CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
 CRYPTOPP_SITE = http://cryptopp.com/
 CRYPTOPP_LICENSE = BSL-1.0