Per Chris Turan's request: extract rsaref into a local directory

and apply local patch instead of using the rsaref port directory.
Fixes problems trying to make both ports concurrently, among other
things.

This is a bookkeeping change only.. there is no change in the
generated libraries.
This commit is contained in:
marc 2000-04-19 17:16:17 +00:00
parent 7e961a38e0
commit 773278834a
3 changed files with 54 additions and 12 deletions

View File

@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.4 2000/04/12 04:16:43 marc Exp $
# $OpenBSD: Makefile,v 1.5 2000/04/19 17:16:17 marc Exp $
DISTNAME= sslUSA-2.7a
DISTNAME= sslUSA-2.7b
PKGNAME= ssl-2.7-USA
CATEGORIES= security
@ -9,9 +9,16 @@ MAINTAINER= ports@openbsd.org
PERMIT_PACKAGE_CDROM= Only valid in USA
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Patent issues
PERMIT_DISTFILES_FTP= Patent issues
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.snafu.org/pub/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MASTER_SITES0= ftp://ftp.zedz.net/pub/crypto/crypto/LIBS/rsa/ \
http://the.wiretapped.net/security/cryptography/libs/rsa/ \
ftp://utopia.hacktic.nl/pub/replay/pub/crypto/LIBS/rsa/
DISTFILES+= rsaref20.1996.tar.Z:0
WRKDIST= ${WRKDIR}/sslUSA
MAKE_ENV= PORTSDIR=${PORTSDIR}
@ -30,10 +37,4 @@ pre-build:
@false
.endif
# Clean up the rsaref sources, too.
#
pre-clean:
@cd ${PORTSDIR}/security/rsaref && \
OBJMACHINE= WRKOBJDIR= unset OBJMACHINE WRKOBJDIR && make clean
.include <bsd.port.mk>

View File

@ -1,3 +1,6 @@
MD5 (sslUSA-2.7a.tar.gz) = a48075776afe845da61782770236b604
RMD160 (sslUSA-2.7a.tar.gz) = 1f6aa4e55a87d0813cfc643d76b8d63b5adf6b8f
SHA1 (sslUSA-2.7a.tar.gz) = c7c00c8e50b9f1c0cc2fbb566e245a256e22a4fb
MD5 (rsaref20.1996.tar.Z) = 6b8df27a1b0b0f7dfb81adac2c222395
MD5 (sslUSA-2.7b.tar.gz) = fa97cded2a1540d1f0a8e9e01bfd0a48
RMD160 (rsaref20.1996.tar.Z) = 12fa88e70f339a7bc8a248a3e1fc71686b80acfa
RMD160 (sslUSA-2.7b.tar.gz) = 2581bb48e94b2b68b7df48c9b4fa77f95d17e315
SHA1 (rsaref20.1996.tar.Z) = a67c8ef354604d8a05984bad8965c8079f88ec78
SHA1 (sslUSA-2.7b.tar.gz) = 7110ad559070ef624d59890e798f70ccdcaa2a74

View File

@ -0,0 +1,38 @@
--- rsa.c.orig Sun Dec 12 13:31:52 1999
+++ ../source/rsa.c Sun Dec 12 13:35:12 1999
@@ -33,6 +33,8 @@
unsigned char byte, pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen;
+ if (publicKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (publicKey->bits + 7) / 8;
if (inputLen + 11 > modulusLen)
return (RE_LEN);
@@ -78,6 +80,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen, pkcsBlockLen;
+ if (publicKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (publicKey->bits + 7) / 8;
if (inputLen > modulusLen)
return (RE_LEN);
@@ -129,6 +133,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen;
+ if (privateKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (privateKey->bits + 7) / 8;
if (inputLen + 11 > modulusLen)
return (RE_LEN);
@@ -168,6 +174,8 @@
unsigned char pkcsBlock[MAX_RSA_MODULUS_LEN];
unsigned int i, modulusLen, pkcsBlockLen;
+ if (privateKey->bits > MAX_RSA_MODULUS_BITS)
+ return (RE_LEN);
modulusLen = (privateKey->bits + 7) / 8;
if (inputLen > modulusLen)
return (RE_LEN);