From dirk.meyer@dinoex.sub.org  Mon Mar  2 14:55:46 2009
Return-Path: <dirk.meyer@dinoex.sub.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BB99A1065676
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 14:55:46 +0000 (UTC)
	(envelope-from dirk.meyer@dinoex.sub.org)
Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2])
	by mx1.freebsd.org (Postfix) with ESMTP id 3D0D78FC24
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon,  2 Mar 2009 14:55:45 +0000 (UTC)
	(envelope-from dirk.meyer@dinoex.sub.org)
Received: from uucp.dinoex.sub.de (dinoex@uucp.dinoex.sub.de [194.45.71.2] (may be forged))
	by uucp.dinoex.sub.de (8.14.2/8.14.2) with ESMTP id n22EP19U011950
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 2 Mar 2009 15:25:01 +0100 (CET)
	(envelope-from dirk.meyer@dinoex.sub.org)
Received: from build.dinoex.sub.de (dinoex@localhost)
	by uucp.dinoex.sub.de (8.14.2/8.14.2/Submit) with BSMTP id n22EP0SB011943
	for <FreeBSD-gnats-submit@FreeBSD.org>; Mon, 2 Mar 2009 15:25:00 +0100 (CET)
	(envelope-from dirk.meyer@dinoex.sub.org)
Message-Id: <YWRY8E7eo+@dmeyer.dinoex.sub.org>
Date: Mon, 02 Mar 2009 15:24:53 +0100
From: dirk.meyer@dinoex.sub.org (Dirk Meyer)
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: [kde-freebsd] ports/132097: security/qca-ossl configure
	not  =?iso-8859-15?q?finding=09OpenSSL_when_WITH=5FOPENSSL=5FPORT?=
	defined
References: <200902261840.n1QIe29w088456@freefall.freebsd.org> <200902261840.n1QIe29w088456@freefall.freebsd.org> <200902271342.20827.matt@chronos.org.uk>

>Number:         132257
>Category:       ports
>Synopsis:       Re: [kde-freebsd] ports/132097: security/qca-ossl configure not finding OpenSSL when WITH_OPENSSL_PORT defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 02 15:00:10 UTC 2009
>Closed-Date:    Mon Mar 02 18:02:36 UTC 2009
>Last-Modified:  Mon Mar 02 18:02:36 UTC 2009
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Matt Dawson schrieb:,
 
 --Boundary-00=_82+pJPodjtmYy57
 Content-Type: text/plain;
   charset="iso-8859-15"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 On Thursday 26 February 2009 18:40:02 Dirk Meyer wrote:
 >  Hello,
 >
 >  I looked int this.
 >  I rebuild with option WITH_OPENSSL_PORTS=yes
 >  	qt4-network-4.4.3
 >  	qca-2.0.0_1
 >
 >  Then patched qca-ossl with the patch below.
 >  I detects OpenSSL but the build fails as EVP_whirlpool ist not defined.
 
 I reported this myself to kde@ on 2008-10-19 21:01 after the OpenSSL port 
 update of October 9th - that patch is attached. This is directly from the 
 upstream's SVN [1], so they know about this issue. I guess they didn't want to 
 roll a new tarball just for the sake of four comment lines. It's there in my 
 version of the port, but I added it locally and csup obviously didn't delete 
 it as it was never present in CVS.
 
 I'll throw the configure args into the Makefile without the conditional I 
 tried last time and run both my patch and yours through tindy [2] again. It'll 
 be a while as it's currently rebuilding the desktop packages after a csup 
 yesterday.
 
 Best regards,
 -- 
 Matt Dawson
 MTD15-RIPE
 matt@chronos.org.uk
 
 [1] <http://websvn.kde.org/trunk/kdesupport/qca/plugins/qca-ossl/qca-
 ossl.cpp?view=log>
 [2] https://tinderbox.chronos.org.uk/tb/
 
 --Boundary-00=_82+pJPodjtmYy57
 Content-Type: text/x-c++src;
   charset="iso-8859-15";
   name="patch-qca-ossl.cpp"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="patch-qca-ossl.cpp"
 
 --- qca-ossl.cpp.orig	2008-10-19 20:53:22.000000000 +0100
 +++ qca-ossl.cpp	2008-10-19 20:55:38.000000000 +0100
 @@ -327,7 +327,7 @@
  	X509V3_CTX ctx;
  	X509V3_set_ctx_nodb(&ctx);
  	X509V3_set_ctx(&ctx, NULL, cert, NULL, NULL, 0);
 -	X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, "hash");
 +	X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx, NID_subject_key_identifier, (char*)"hash");
  	return ex;
  }
  
 @@ -6597,9 +6597,11 @@
  #ifdef SHA512_DIGEST_LENGTH
  	list += "sha512";
  #endif
 +/*
  #ifdef OBJ_whirlpool
  	list += "whirlpool";
  #endif
 +*/
  	return list;
  }
  
 @@ -6810,10 +6812,12 @@
  		else if ( type == "sha512" )
  			return new opensslHashContext( EVP_sha512(), this, type);
  #endif
 +/*
  #ifdef OBJ_whirlpool
  		else if ( type == "whirlpool" )
  			return new opensslHashContext( EVP_whirlpool(), this, type);
  #endif
 +*/
  		else if ( type == "pbkdf1(sha1)" )
  			return new opensslPbkdf1Context( EVP_sha1(), this, type );
  		else if ( type == "pbkdf1(md2)" )
 
 --Boundary-00=_82+pJPodjtmYy57--
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 2 18:00:21 UTC 2009 
State-Changed-Why:  
Misfiled followup to ports/132097; content migrated. 


Responsible-Changed-From-To: gnats-admin->kde 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 2 18:00:21 UTC 2009 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=132257 
>Unformatted:
