[DRE-commits] [ruby-http] 01/01: add missing x509v3 extension to certs generated for tests

Micah Anderson micah at moszumanska.debian.org
Tue Dec 6 03:56:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

micah pushed a commit to branch master
in repository ruby-http.

commit 9efd2773126b8fb9963483642f4131ad60e1b8a6
Author: Micah Anderson <micah at riseup.net>
Date:   Mon Dec 5 21:57:56 2016 -0500

    add missing x509v3 extension to certs generated for tests
---
 debian/changelog                                   |  6 ++++++
 .../patches/add-missing-x509v3-extensions-in-spec  | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f907b4a..5f9dd2b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-http (1.0.2-4) unstable; urgency=medium
+
+  * Add missing x509v3 extenions to certs generated for tests
+
+ -- Micah Anderson <micah at debian.org>  Mon, 05 Dec 2016 21:57:12 -0500
+
 ruby-http (1.0.2-3) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/add-missing-x509v3-extensions-in-spec b/debian/patches/add-missing-x509v3-extensions-in-spec
new file mode 100644
index 0000000..bf36b4c
--- /dev/null
+++ b/debian/patches/add-missing-x509v3-extensions-in-spec
@@ -0,0 +1,23 @@
+Index: ruby-http/spec/support/ssl_helper.rb
+===================================================================
+--- ruby-http.orig/spec/support/ssl_helper.rb	2016-12-05 22:51:31.319414848 -0500
++++ ruby-http/spec/support/ssl_helper.rb	2016-12-05 22:53:22.212685884 -0500
+@@ -33,6 +33,8 @@
+   end
+ 
+   class ChildCertificate < ::CertificateAuthority::Certificate
++    EXTENSIONS = {"extendedKeyUsage" => {"usage" => %w(serverAuth clientAuth)}}
++
+     def initialize(parent)
+       super()
+ 
+@@ -43,7 +45,8 @@
+ 
+       self.parent = parent
+ 
+-      sign!
++      sign!("extensions" => EXTENSIONS)
++
+     end
+ 
+     def cert
diff --git a/debian/patches/series b/debian/patches/series
index 598c66a..5b32cae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 removing_simplecov_html.patch
 disable-network-tests.patch
+add-missing-x509v3-extensions-in-spec

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-http.git



More information about the Pkg-ruby-extras-commits mailing list