commit:     942e6070fbfb08a4489aa14249b62019ce895152
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 16 23:52:49 2015 +0000
Commit:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Sun Aug 16 23:53:07 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=942e6070

app-backup/burp: Use SHA256 for generating certificates

SHA1 used to be a default which classified as broken.

Package-Manager: portage-2.2.20.1

 app-backup/burp/burp-1.3.48.ebuild                 |  1 +
 app-backup/burp/burp-1.3.8.ebuild                  |  5 ++++-
 ...3.48-0001-Set-default_md-sha256-in-CA.cnf.patch | 25 ++++++++++++++++++++++
 ....3.8-0001-Set-default_md-sha256-in-CA.cnf.patch | 25 ++++++++++++++++++++++
 4 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/app-backup/burp/burp-1.3.48.ebuild 
b/app-backup/burp/burp-1.3.48.ebuild
index 6e3a412..6d1e4b7 100644
--- a/app-backup/burp/burp-1.3.48.ebuild
+++ b/app-backup/burp/burp-1.3.48.ebuild
@@ -36,6 +36,7 @@ DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
 PATCHES=(
        "${FILESDIR}/${PV}-bedup-conf-path.patch"
        "${FILESDIR}/${PV}-tinfo.patch"
+       "${FILESDIR}/${PV}-0001-Set-default_md-sha256-in-CA.cnf.patch"
        )
 S="${WORKDIR}/burp"
 

diff --git a/app-backup/burp/burp-1.3.8.ebuild 
b/app-backup/burp/burp-1.3.8.ebuild
index 5a51e5a..7ac69eb 100644
--- a/app-backup/burp/burp-1.3.8.ebuild
+++ b/app-backup/burp/burp-1.3.8.ebuild
@@ -33,7 +33,10 @@ RDEPEND="${DEPEND}
        "
 
 DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
-PATCHES=( "${FILESDIR}/${PV}-bedup-conf-path.patch" )
+PATCHES=(
+       "${FILESDIR}/${PV}-bedup-conf-path.patch"
+       "${FILESDIR}/${PV}-0001-Set-default_md-sha256-in-CA.cnf.patch"
+       )
 S="${WORKDIR}/burp"
 
 pkg_setup() {

diff --git 
a/app-backup/burp/files/1.3.48-0001-Set-default_md-sha256-in-CA.cnf.patch 
b/app-backup/burp/files/1.3.48-0001-Set-default_md-sha256-in-CA.cnf.patch
new file mode 100644
index 0000000..e4cce52
--- /dev/null
+++ b/app-backup/burp/files/1.3.48-0001-Set-default_md-sha256-in-CA.cnf.patch
@@ -0,0 +1,25 @@
+From dd9b4bad27bf0395c0836d41e61678ba39459422 Mon Sep 17 00:00:00 2001
+From: graham <[email protected]>
+Date: Tue, 16 Jun 2015 12:29:56 +0000
+Subject: [PATCH] Set default_md=sha256 in CA.cnf.
+
+---
+ configs/certs/CA/CA.cnf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configs/certs/CA/CA.cnf b/configs/certs/CA/CA.cnf
+index 097f5fa..608cbce 100644
+--- a/configs/certs/CA/CA.cnf
++++ b/configs/certs/CA/CA.cnf
+@@ -14,7 +14,7 @@ crlnumber               = $dir/crlnumber.txt
+ 
+ unique_subject          = no
+ 
+-default_md              = sha1
++default_md              = sha256
+ default_days            = 7300
+ default_crl_days        = 7300
+ 
+-- 
+2.5.0
+

diff --git 
a/app-backup/burp/files/1.3.8-0001-Set-default_md-sha256-in-CA.cnf.patch 
b/app-backup/burp/files/1.3.8-0001-Set-default_md-sha256-in-CA.cnf.patch
new file mode 100644
index 0000000..e4cce52
--- /dev/null
+++ b/app-backup/burp/files/1.3.8-0001-Set-default_md-sha256-in-CA.cnf.patch
@@ -0,0 +1,25 @@
+From dd9b4bad27bf0395c0836d41e61678ba39459422 Mon Sep 17 00:00:00 2001
+From: graham <[email protected]>
+Date: Tue, 16 Jun 2015 12:29:56 +0000
+Subject: [PATCH] Set default_md=sha256 in CA.cnf.
+
+---
+ configs/certs/CA/CA.cnf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configs/certs/CA/CA.cnf b/configs/certs/CA/CA.cnf
+index 097f5fa..608cbce 100644
+--- a/configs/certs/CA/CA.cnf
++++ b/configs/certs/CA/CA.cnf
+@@ -14,7 +14,7 @@ crlnumber               = $dir/crlnumber.txt
+ 
+ unique_subject          = no
+ 
+-default_md              = sha1
++default_md              = sha256
+ default_days            = 7300
+ default_crl_days        = 7300
+ 
+-- 
+2.5.0
+

Reply via email to