- Fix runtime error when used with OpenSSL 1.0.1i [1]

- While here, Fix LICENSE, rename patch files and remove dirrms

PR:		193988
Submitted by:	me
Obtained from:	upstream git repo [1]
Approved by:	maintainer timeout
This commit is contained in:
Guido Falsi 2014-10-16 09:15:54 +00:00
parent f0cfdebc63
commit 04584e5299
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370985
5 changed files with 22 additions and 6 deletions

View File

@ -3,14 +3,14 @@
PORTNAME= xca
PORTVERSION= 0.9.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= freebsd@nagilum.org
COMMENT= Graphical certification authority
LICENSE= BSD
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl

View File

@ -0,0 +1,20 @@
--- lib/x509v3ext.cpp.orig 2012-05-12 09:37:14 UTC
+++ lib/x509v3ext.cpp
@@ -27,6 +27,8 @@
x509v3ext::x509v3ext(const x509v3ext &n)
{
ext = NULL;
+ if (!n.isValid())
+ return;
set(n.ext);
}
@@ -743,7 +745,7 @@
bool x509v3ext::isValid() const
{
- return ext->value->length > 0 &&
+ return ext && ext->value && ext->value->length > 0 &&
OBJ_obj2nid(ext->object) != NID_undef;
}

View File

@ -17,7 +17,3 @@ man/man1/xca.1.gz
share/applications/xca.desktop
share/mime/packages/xca.xml
share/pixmaps/xca-32x32.xpm
@dirrm %%DATADIR%%
@dirrm %%DOCSDIR%%
@dirrmtry share/mime/packages
@dirrmtry share/mime