Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/xca/files: xca-0.9.3-openssl.patch
Date: Fri, 29 Aug 2014 21:01:40
Message-Id: 20140829210137.0C40D4327@oystercatcher.gentoo.org
1 alonbl 14/08/29 21:01:37
2
3 Added: xca-0.9.3-openssl.patch
4 Log:
5 Fix openssl issue, bug#520948, thanks to wmatusiak@×××××.com
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
8
9 Revision Changes Path
10 1.1 app-crypt/xca/files/xca-0.9.3-openssl.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/xca/files/xca-0.9.3-openssl.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/xca/files/xca-0.9.3-openssl.patch?rev=1.1&content-type=text/plain
14
15 Index: xca-0.9.3-openssl.patch
16 ===================================================================
17 From: Oliver Winker <oliver@×××××××.net>
18 Date: Tue, 12 Aug 2014 17:08:05 +0000 (+0200)
19 Subject: Fix for openssl 1.0.1i
20 X-Git-Url: http://gitweb.hohnstaedt.de/?p=projects%2Fxca.git;a=commitdiff_plain;h=4f7cd417320215c8ed3567536cbf2ca008946c38
21
22 Fix for openssl 1.0.1i
23
24 Fixes following application error
25
26 Errors
27 error:0D0C40D8:asn1 encoding routines:c2i_ASN1_OBJECT:invalid object encoding
28 error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
29
30 Due to openssl 1.0.1i change:
31
32 commit 03b04ddac162c7b7fa3c57eadccc5a583a00d291
33 Author: Emilia Kasper <emilia@×××××××.org>
34 Date: Wed Jul 2 19:02:33 2014 +0200
35
36 Commit messgae amended and
37 Signed-off-by: Christian Hohnstaedt <chohnstaedt@××××××××××.com>
38 ---
39
40 diff --git a/lib/x509v3ext.cpp b/lib/x509v3ext.cpp
41 index cf74c32..d94cbda 100644
42 --- a/lib/x509v3ext.cpp
43 +++ b/lib/x509v3ext.cpp
44 @@ -27,6 +27,8 @@ x509v3ext::x509v3ext(const X509_EXTENSION *n)
45 x509v3ext::x509v3ext(const x509v3ext &n)
46 {
47 ext = NULL;
48 + if (!n.isValid())
49 + return;
50 set(n.ext);
51 }
52
53 @@ -743,7 +745,7 @@ X509_EXTENSION *x509v3ext::get() const
54
55 bool x509v3ext::isValid() const
56 {
57 - return ext->value->length > 0 &&
58 + return ext && ext->value && ext->value->length > 0 &&
59 OBJ_obj2nid(ext->object) != NID_undef;
60 }