From 4c9707abfca2f8efd7237988b1dac0d98db3f381 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 5 Jan 2006 19:00:11 +0000 Subject: Fix compilation with OpenSSL 0.9.8. --- security/xmlsec1/distinfo | 3 ++- security/xmlsec1/patches/patch-aa | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 security/xmlsec1/patches/patch-aa diff --git a/security/xmlsec1/distinfo b/security/xmlsec1/distinfo index f5727014d7a..4aaa91dedc5 100644 --- a/security/xmlsec1/distinfo +++ b/security/xmlsec1/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 13:10:14 agc Exp $ +$NetBSD: distinfo,v 1.3 2006/01/05 19:00:11 joerg Exp $ SHA1 (xmlsec1-1.2.6.tar.gz) = de5b7a70825d96ee9ee7e1aa43194df8412cf72d RMD160 (xmlsec1-1.2.6.tar.gz) = bdc7692be5c4f4c27c177fe5271b13382a44d452 Size (xmlsec1-1.2.6.tar.gz) = 1595648 bytes +SHA1 (patch-aa) = 1718c051201bf7803057b2a8ad7b004f90e35147 diff --git a/security/xmlsec1/patches/patch-aa b/security/xmlsec1/patches/patch-aa new file mode 100644 index 00000000000..c923da34c62 --- /dev/null +++ b/security/xmlsec1/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1 2006/01/05 19:00:11 joerg Exp $ + +--- src/openssl/x509vfy.c.orig 2006-01-02 13:44:25.000000000 +0000 ++++ src/openssl/x509vfy.c +@@ -499,7 +499,11 @@ xmlSecOpenSSLX509StoreInitialize(xmlSecK + } + X509_LOOKUP_add_dir(lookup, (char*)path, X509_FILETYPE_DEFAULT); + } ++#if OPENSSL_VERSION_NUMBER < 0x00908000L + ctx->xst->depth = 9; /* the default cert verification path in openssl */ ++#else ++ X509_STORE_set_depth(ctx->xst, 9); ++#endif + + ctx->untrusted = sk_X509_new_null(); + if(ctx->untrusted == NULL) { -- cgit v1.2.3