Hi,
the attached patch updates p5-Crypt-OpenSSL-RSA from version 0.19 to
0.24. The new version fixes bugs, adds new functions and, last but no
least, may be distributed under the same license terms as Perl.
I contacted Wesley Griffin, the current maintainer. He says that he
hasn't got the time to maintain the port any longer.
If nobody else is interested in maintaining this port, I'll take it.
I use p5-Crypt-OpenSSL-RSA occasionally to convert public keys from
OpenSSL's file format to the format used by Racoon.
p5-Crypt-OpenSSL-RSA is used by p5-Net-DNS-SEC, which is maintained by
Jasper Lievisse Adriaanse. I don't use p5-Net-DNS-SEC myself but the
regression tests of that module still pass.
Andreas
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-OpenSSL-RSA/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 27 Dec 2004 13:28:34 -0000 1.5
+++ Makefile 29 Dec 2006 08:37:30 -0000
@@ -1,27 +1,27 @@
# $OpenBSD: Makefile,v 1.5 2004/12/27 13:28:34 alek Exp $
-NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
+SHARED_ONLY= Yes
COMMENT= "RSA encoding and decoding using OpenSSL"
-VERSION= 0.19
-DISTNAME= Crypt-OpenSSL-RSA-${VERSION}
-PKGNAME= p5-${DISTNAME}
-CATEGORIES= security perl5
+MODULES= cpan
+
+DISTNAME= Crypt-OpenSSL-RSA-0.24
+CATEGORIES= security
HOMEPAGE= http://perl-openssl.sourceforge.net/
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Crypt/}
-MAINTAINER= Wesley Griffin <[EMAIL PROTECTED]>
+MAINTAINER= Andreas Voegele <[EMAIL PROTECTED]>
+
+# Perl
+PERMIT_PACKAGE_CDROM= Yes
+PERMIT_PACKAGE_FTP= Yes
+PERMIT_DISTFILES_CDROM= Yes
+PERMIT_DISTFILES_FTP= Yes
-PERMIT_PACKAGE_CDROM= "No license"
-PERMIT_PACKAGE_FTP= "No license"
-PERMIT_DISTFILES_CDROM= "No license"
-PERMIT_DISTFILES_FTP= "No license"
WANTLIB= crypto ssl
-RUN_DEPENDS= :p5-Crypt-OpenSSL-Random->=0.03:security/p5-Crypt-OpenSSL-Random
+RUN_DEPENDS= :p5-Crypt-OpenSSL-Random->=0.03:security/p5-Crypt-OpenSSL-Random \
+ :p5-Crypt-OpenSSL-Bignum->=0.03:security/p5-Crypt-OpenSSL-Bignum
BUILD_DEPENDS= ${RUN_DEPENDS}
-
-CONFIGURE_STYLE= perl
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-OpenSSL-RSA/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 5 Jan 2005 17:26:42 -0000 1.3
+++ distinfo 29 Dec 2006 08:37:30 -0000
@@ -1,4 +1,4 @@
-MD5 (Crypt-OpenSSL-RSA-0.19.tar.gz) = 87a308bf752ffd74b8034a906184e116
-RMD160 (Crypt-OpenSSL-RSA-0.19.tar.gz) = 7134b8cdd5f27021b8a70c44893372f0cf7921ce
-SHA1 (Crypt-OpenSSL-RSA-0.19.tar.gz) = 7633a523588ae95551468ce7aec01fa3317f1ba9
-SIZE (Crypt-OpenSSL-RSA-0.19.tar.gz) = 11227
+MD5 (Crypt-OpenSSL-RSA-0.24.tar.gz) = 5760e2678cd9e1aa33b40d5d216899c8
+RMD160 (Crypt-OpenSSL-RSA-0.24.tar.gz) = 92468e2ae97fce7c1278b25bafd7458e1c32df65
+SHA1 (Crypt-OpenSSL-RSA-0.24.tar.gz) = d8258622fd50292d0980acd682b6522804a887a5
+SIZE (Crypt-OpenSSL-RSA-0.24.tar.gz) = 11847
Index: patches/patch-t_rsa_t
===================================================================
RCS file: patches/patch-t_rsa_t
diff -N patches/patch-t_rsa_t
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-t_rsa_t 29 Dec 2006 08:37:30 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- t/rsa.t.orig Mon Nov 13 01:01:04 2006
++++ t/rsa.t Thu Dec 28 13:11:23 2006
+@@ -4,7 +4,7 @@ use Test;
+ use Crypt::OpenSSL::Random;
+ use Crypt::OpenSSL::RSA;
+
+-BEGIN { plan tests => 45 + (UNIVERSAL::can("Crypt::OpenSSL::RSA", "use_sha512_hash") ? 3*6 : 0) }
++BEGIN { plan tests => 43 + (UNIVERSAL::can("Crypt::OpenSSL::RSA", "use_sha512_hash") ? 4*5 : 0) }
+
+ sub _Test_Encrypt_And_Decrypt
+ {
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-OpenSSL-RSA/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 DESCR
--- pkg/DESCR 15 Oct 2002 11:20:10 -0000 1.1.1.1
+++ pkg/DESCR 29 Dec 2006 08:37:30 -0000
@@ -1,14 +1,17 @@
-This module is an XS perl module designed to provide basic RSA
-functionality. It does this by providing a glue to the RSA functions
-in the OpenSSL library. In particular, it provides the following
-functions:
+Crypt::OpenSSL::RSA is an XS perl module designed to provide basic RSA
+functionality. It does this by providing a glue to the RSA functions
+in the OpenSSL library. In particular, it provides the following functions:
-loadPublicKey, loadPrivateKey - load a key from a string
-getPublicKeyString, getPrivateKeyString - save a key to a string
-generateKey - make a new key
-encrypt, decrypt, sign, verify,
-use_pkcs1_oaep_padding, use_pkcs1_padding,
-use_sslv23_padding, use_no_padding,
-use_md5_hash, use_sha1_hash, use_ripemd60_hash
-size - returns the size, in bytes, of the key
-checkKey - checks the validity of the key
+ new_public_key, new_private_key - create a key from a string
+ generate_key - make a new key
+ get_private_key_string - save key to a string
+ get_public_key_string - save public portion of key to a string
+ get_public_key_x509_string - save public portion of key to a string,
+ using format compatibe with OpenSSL's
+ command-line rsa tool
+ encrypt, decrypt, private_encrypt, public_decrypt, sign, verify,
+ use_pkcs1_oaep_padding, use_pkcs1_padding,
+ use_sslv23_padding, use_no_padding
+ use_md5_hash, use_sha1_hash, use_ripemd160_hash
+ size - Returns the size, in bytes, of the key.
+ check_key - checks the validity of a key.
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/p5-Crypt-OpenSSL-RSA/pkg/PLIST,v
retrieving revision 1.4
diff -u -r1.4 PLIST
--- pkg/PLIST 15 Sep 2004 18:36:01 -0000 1.4
+++ pkg/PLIST 29 Dec 2006 08:37:30 -0000
@@ -1,24 +1,11 @@
@comment $OpenBSD: PLIST,v 1.4 2004/09/15 18:36:01 espie Exp $
${P5ARCH}/Crypt/OpenSSL/RSA.pm
${P5ARCH}/auto/Crypt/OpenSSL/RSA/
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/DESTROY.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/RSA.bs
${P5ARCH}/auto/Crypt/OpenSSL/RSA/RSA.so
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/_new.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/_set_padding_mode.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/autosplit.ix
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/generate_key.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/get_key_parameters.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/get_padding_mode.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/get_private_key_string.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/get_public_key_string.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/import_random_seed.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/load_private_key.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/load_public_key.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/new.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/new_key_from_parameters.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/new_private_key.al
${P5ARCH}/auto/Crypt/OpenSSL/RSA/new_public_key.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/set_padding_mode.al
-${P5ARCH}/auto/Crypt/OpenSSL/RSA/use_sslv23_padding.al
@man man/man3p/Crypt::OpenSSL::RSA.3p