pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/p5-Crypt-OpenSSL-RSA p5-Crypt-OpenSSL-RSA: up...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/af1221322d3d
branches:  trunk
changeset: 379623:af1221322d3d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed May 02 13:22:44 2018 +0000

description:
p5-Crypt-OpenSSL-RSA: update to 0.30.

0.30 Tue May 1 2018
        - Working windows library detection
        - Actively testing on appveyor for windows now.
        - work correctly on LibreSSL

0.29_03  Mon Apr 16 2018
        - Add whirlpool hash support.
        - Crypt::OpenSSL::Random is now required at comnpile-time.
        - Use the new interface to RSA_generate_key if available
        - Add library paths to LIBS from Crypt::OpenSSL::Guess

diffstat:

 security/p5-Crypt-OpenSSL-RSA/Makefile             |    5 +-
 security/p5-Crypt-OpenSSL-RSA/distinfo             |   11 +-
 security/p5-Crypt-OpenSSL-RSA/patches/patch-RSA.xs |  177 ---------------------
 3 files changed, 7 insertions(+), 186 deletions(-)

diffs (211 lines):

diff -r 69a03b54b7eb -r af1221322d3d security/p5-Crypt-OpenSSL-RSA/Makefile
--- a/security/p5-Crypt-OpenSSL-RSA/Makefile    Wed May 02 13:19:55 2018 +0000
+++ b/security/p5-Crypt-OpenSSL-RSA/Makefile    Wed May 02 13:22:44 2018 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.35 2018/02/25 18:53:48 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2018/05/02 13:22:44 wiz Exp $
 
-DISTNAME=              Crypt-OpenSSL-RSA-0.28
+DISTNAME=              Crypt-OpenSSL-RSA-0.30
 PKGNAME=               p5-${DISTNAME}
-PKGREVISION=           10
 CATEGORIES=            security perl5
 MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=Crypt/}
 
diff -r 69a03b54b7eb -r af1221322d3d security/p5-Crypt-OpenSSL-RSA/distinfo
--- a/security/p5-Crypt-OpenSSL-RSA/distinfo    Wed May 02 13:19:55 2018 +0000
+++ b/security/p5-Crypt-OpenSSL-RSA/distinfo    Wed May 02 13:22:44 2018 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.11 2018/02/25 18:53:48 wiz Exp $
+$NetBSD: distinfo,v 1.12 2018/05/02 13:22:44 wiz Exp $
 
-SHA1 (Crypt-OpenSSL-RSA-0.28.tar.gz) = 9978e5fcac15ea691030181d2d12564fa3902e5e
-RMD160 (Crypt-OpenSSL-RSA-0.28.tar.gz) = aff5d921deacc73f22351a96af4426c40d698caa
-SHA512 (Crypt-OpenSSL-RSA-0.28.tar.gz) = 4a20c3f814e80ea15304b2a189001172e72237d703a0f9281e7e46d593c521508abfac3a259701994ec867f160821bec37e4e8234d04b792168db19b065ce324
-Size (Crypt-OpenSSL-RSA-0.28.tar.gz) = 20035 bytes
-SHA1 (patch-RSA.xs) = 22e0deff296ebc2272c42358a8c0cc3dcb48a612
+SHA1 (Crypt-OpenSSL-RSA-0.30.tar.gz) = 77d7248274bd7a747cac202f0dc31ac9444f56ae
+RMD160 (Crypt-OpenSSL-RSA-0.30.tar.gz) = d698359ec2920f267f68136adedec2fdb92533b3
+SHA512 (Crypt-OpenSSL-RSA-0.30.tar.gz) = 7a6fb6dd3a454f97666f1ccdefae57641b8f79513b8ac3850b5508c27f3ad3195649b2979693e38350ea94d2f405390a77ca893431b2e349d4aa4eb06c0ba11b
+Size (Crypt-OpenSSL-RSA-0.30.tar.gz) = 24664 bytes
diff -r 69a03b54b7eb -r af1221322d3d security/p5-Crypt-OpenSSL-RSA/patches/patch-RSA.xs
--- a/security/p5-Crypt-OpenSSL-RSA/patches/patch-RSA.xs        Wed May 02 13:19:55 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,177 +0,0 @@
-$NetBSD: patch-RSA.xs,v 1.1 2018/02/25 18:53:48 wiz Exp $
-
-From b3747e625780be90dcff11c2d9e91048016bb4d0 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar%redhat.com@localhost>
-Date: Thu, 13 Oct 2016 18:14:17 +0200
-Subject: [PATCH] Adapt to OpenSSL 1.1.0
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-OpenSSL 1.1.0 hid structure internals and provided methods for getting
-and settting the internal values. This patch modifes the code so that
-it can be built with OpenSSL 1.1.0 as well as with the older one.
-
-CPAN RT#117481
-
---- RSA.xs.orig        2011-08-24 22:57:35.000000000 +0000
-+++ RSA.xs
-@@ -49,7 +49,13 @@ void croakSsl(char* p_file, int p_line)
- 
- char _is_private(rsaData* p_rsa)
- {
--    return(p_rsa->rsa->d != NULL);
-+    const BIGNUM *d;
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+    d = p_rsa->rsa->d;
-+#else
-+    RSA_get0_key(p_rsa->rsa, NULL, NULL, &d);
-+#endif
-+    return(d != NULL);
- }
- 
- SV* make_rsa_obj(SV* p_proto, RSA* p_rsa)
-@@ -136,7 +142,7 @@ unsigned char* get_message_digest(SV* te
-     }
- }
- 
--SV* bn2sv(BIGNUM* p_bn)
-+SV* bn2sv(const BIGNUM* p_bn)
- {
-     return p_bn != NULL
-         ? sv_2mortal(newSViv((IV) BN_dup(p_bn)))
-@@ -317,6 +323,9 @@ _new_key_from_parameters(proto, n, e, d,
-     BN_CTX* ctx;
-     BIGNUM* p_minus_1 = NULL;
-     BIGNUM* q_minus_1 = NULL;
-+    BIGNUM* dmp1 = NULL;
-+    BIGNUM* dmq1 = NULL;
-+    BIGNUM* iqmp = NULL;
-     int error;
-   CODE:
- {
-@@ -325,8 +334,10 @@ _new_key_from_parameters(proto, n, e, d,
-         croak("At least a modulous and public key must be provided");
-     }
-     CHECK_OPEN_SSL(rsa = RSA_new());
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-     rsa->n = n;
-     rsa->e = e;
-+#endif
-     if (p || q)
-     {
-         error = 0;
-@@ -341,8 +352,12 @@ _new_key_from_parameters(proto, n, e, d,
-             q = BN_new();
-             THROW(BN_div(q, NULL, n, p, ctx));
-         }
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-         rsa->p = p;
-         rsa->q = q;
-+#else
-+        THROW(RSA_set0_factors(rsa, p, q));
-+#endif
-         THROW(p_minus_1 = BN_new());
-         THROW(BN_sub(p_minus_1, p, BN_value_one()));
-         THROW(q_minus_1 = BN_new());
-@@ -353,17 +368,32 @@ _new_key_from_parameters(proto, n, e, d,
-             THROW(BN_mul(d, p_minus_1, q_minus_1, ctx));
-             THROW(BN_mod_inverse(d, e, d, ctx));
-         }
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-         rsa->d = d;
--        THROW(rsa->dmp1 = BN_new());
--        THROW(BN_mod(rsa->dmp1, d, p_minus_1, ctx));
--        THROW(rsa->dmq1 = BN_new());
--        THROW(BN_mod(rsa->dmq1, d, q_minus_1, ctx));
--        THROW(rsa->iqmp = BN_new());
--        THROW(BN_mod_inverse(rsa->iqmp, q, p, ctx));
-+#else
-+        THROW(RSA_set0_key(rsa, n, e, d));
-+#endif
-+        THROW(dmp1 = BN_new());
-+        THROW(BN_mod(dmp1, d, p_minus_1, ctx));
-+        THROW(dmq1 = BN_new());
-+        THROW(BN_mod(dmq1, d, q_minus_1, ctx));
-+        THROW(iqmp = BN_new());
-+        THROW(BN_mod_inverse(iqmp, q, p, ctx));
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+        rsa->dmp1 = dmp1;
-+        rsa->dmq1 = dmq1;
-+        rsa->iqmp = iqmp;
-+#else
-+        THROW(RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp));
-+#endif
-+        dmp1 = dmq1 = iqmp = NULL;
-         THROW(RSA_check_key(rsa) == 1);
-      err:
-         if (p_minus_1) BN_clear_free(p_minus_1);
-         if (q_minus_1) BN_clear_free(q_minus_1);
-+        if (dmp1) BN_clear_free(dmp1);
-+        if (dmq1) BN_clear_free(dmq1);
-+        if (iqmp) BN_clear_free(iqmp);
-         if (ctx) BN_CTX_free(ctx);
-         if (error)
-         {
-@@ -373,7 +403,11 @@ _new_key_from_parameters(proto, n, e, d,
-     }
-     else
-     {
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-         rsa->d = d;
-+#else
-+        CHECK_OPEN_SSL(RSA_set0_key(rsa, n, e, d));
-+#endif
-     }
-     RETVAL = make_rsa_obj(proto, rsa);
- }
-@@ -383,18 +417,41 @@ _new_key_from_parameters(proto, n, e, d,
- void
- _get_key_parameters(p_rsa)
-     rsaData* p_rsa;
-+PREINIT:
-+    const BIGNUM* n;
-+    const BIGNUM* e;
-+    const BIGNUM* d;
-+    const BIGNUM* p;
-+    const BIGNUM* q;
-+    const BIGNUM* dmp1;
-+    const BIGNUM* dmq1;
-+    const BIGNUM* iqmp;
- PPCODE:
- {
-     RSA* rsa;
-     rsa = p_rsa->rsa;
--    XPUSHs(bn2sv(rsa->n));
--    XPUSHs(bn2sv(rsa->e));
--    XPUSHs(bn2sv(rsa->d));
--    XPUSHs(bn2sv(rsa->p));
--    XPUSHs(bn2sv(rsa->q));
--    XPUSHs(bn2sv(rsa->dmp1));
--    XPUSHs(bn2sv(rsa->dmq1));
--    XPUSHs(bn2sv(rsa->iqmp));
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+    n = rsa->n;
-+    e = rsa->e;
-+    d = rsa->d;
-+    p = rsa->p;
-+    q = rsa->q;
-+    dmp1 = rsa->dmp1;
-+    dmq1 = rsa->dmq1;
-+    iqmp = rsa->iqmp;
-+#else
-+    RSA_get0_key(rsa, &n, &e, &d);
-+    RSA_get0_factors(rsa, &p, &q);
-+    RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp);
-+#endif
-+    XPUSHs(bn2sv(n));
-+    XPUSHs(bn2sv(e));
-+    XPUSHs(bn2sv(d));
-+    XPUSHs(bn2sv(p));
-+    XPUSHs(bn2sv(q));
-+    XPUSHs(bn2sv(dmp1));
-+    XPUSHs(bn2sv(dmq1));
-+    XPUSHs(bn2sv(iqmp));
- }
- 
- SV*



Home | Main Index | Thread Index | Old Index