From boris@brooknet.com.au  Wed Apr  6 06:45:17 2005
Return-Path: <boris@brooknet.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 70FB616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  6 Apr 2005 06:45:17 +0000 (GMT)
Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E6AA743D46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  6 Apr 2005 06:45:15 +0000 (GMT)
	(envelope-from boris@brooknet.com.au)
Received: from localhost (ppp2C06.dyn.pacific.net.au [61.8.44.6])
	by bloodwood.hunterlink.net.au (8.12.8/8.12.8) with ESMTP id j366j6UM009735
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 6 Apr 2005 16:45:08 +1000
Received: by localhost (Postfix, from userid 0)
	id B9C2C993; Wed,  6 Apr 2005 16:43:52 +1000 (EST)
Message-Id: <20050406064352.B9C2C993@localhost>
Date: Wed,  6 Apr 2005 16:43:52 +1000 (EST)
From: Sam Lawrance <boris@brooknet.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] security/cryptlib: unbreak and update distinfo
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         79591
>Category:       ports
>Synopsis:       [PATCH] security/cryptlib: unbreak and update distinfo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 06 06:50:05 GMT 2005
>Closed-Date:    Wed Apr 06 09:48:34 GMT 2005
>Last-Modified:  Wed Apr 06 09:48:34 GMT 2005
>Originator:     Sam Lawrance
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD dirk.no.domain 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #11: Sun Mar  6 12:44:50 EST
>Description:
Distfile changed. A diff between the contents of the original distfile, found here:
	http://mirror.isp.net.au/ftp/pub/freebsd/distfiles/cl31.zip
and the new one shows that the changes consist of inconsequential whitespace, with one
exception shown below:

:) diff -burN cl31.orig/misc/net_http.c cl31/misc/net_http.c
:) --- cl31.orig/misc/net_http.c	Sat Dec 20 20:15:12 2003
:) +++ cl31/misc/net_http.c	Sat Dec 20 19:15:24 2003
@@ -543,6 +543,7 @@
 					{
 					if( httpErrorStatus != NULL )
 						*httpErrorStatus = 415;
+					lineBuffer[ CRYPT_MAX_TEXTSIZE ] = '\0';
 					retExtStream( stream, CRYPT_ERROR_BADDATA,
 								  "Invalid HTTP content encoding method '%s'",
 								  lineBuffer );
@@ -559,6 +560,7 @@
 					{
 					if( httpErrorStatus != NULL )
 						*httpErrorStatus = 415;
+					lineBuffer[ CRYPT_MAX_TEXTSIZE ] = '\0';
 					retExtStream( stream, CRYPT_ERROR_BADDATA,
 								  "Invalid HTTP content transfer encoding "
 								  "method '%s'", lineBuffer );

PORTREVISION is bumped for this reason.

>How-To-Repeat:
>Fix:

--- cryptlib-3.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/FreeBSD/ports/security/cryptlib/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	28 Feb 2005 04:24:54 -0000	1.8
+++ Makefile	6 Apr 2005 06:42:07 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=		cryptlib
 PORTVERSION=		3.1
-PORTREVISION=		1
+PORTREVISION=		2
 CATEGORIES=		security
 MASTER_SITES=		ftp://ftp.franken.de/pub/crypt/cryptlib/
 DISTNAME=		cl31
@@ -16,8 +16,6 @@
 MAINTAINER=		ports@FreeBSD.org
 COMMENT=		A powerful security programming toolkit
 
-BROKEN=			Size mismatch
-
 ONLY_FOR_ARCHS=		i386
 
 USE_ZIP=		yes
Index: distinfo
===================================================================
RCS file: /home/ncvs/FreeBSD/ports/security/cryptlib/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo	30 Jan 2004 09:29:33 -0000	1.4
+++ distinfo	6 Apr 2005 05:19:14 -0000
@@ -1,2 +1,2 @@
-MD5 (cl31.zip) = 80997fdc4bf26a849f0de915c08adab2
-SIZE (cl31.zip) = 2815203
+MD5 (cl31.zip) = d732c7d527debbd01848c303e62efa13
+SIZE (cl31.zip) = 2815315
--- cryptlib-3.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: danfe 
State-Changed-When: Wed Apr 6 09:48:18 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

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