From owner-dev-commits-ports-main@freebsd.org Sun May 30 20:04:47 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 291C1634600; Sun, 30 May 2021 20:04:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FtTsp26fsz3nNs; Sun, 30 May 2021 20:04:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CB7D022B6F; Sun, 30 May 2021 20:04:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14UK4hnn077915; Sun, 30 May 2021 20:04:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14UK4hQO077914; Sun, 30 May 2021 20:04:43 GMT (envelope-from git) Date: Sun, 30 May 2021 20:04:43 GMT Message-Id: <202105302004.14UK4hQO077914@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d859e2543765 - main - security/p5-Crypt-OpenSSL-ECDSA: Update to 0.10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d859e2543765ca9bbeac7e709bc8bca84eeeaee7 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2021 20:04:47 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d859e2543765ca9bbeac7e709bc8bca84eeeaee7 commit d859e2543765ca9bbeac7e709bc8bca84eeeaee7 Author: Po-Chuan Hsieh AuthorDate: 2021-05-30 19:55:36 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-05-30 19:55:36 +0000 security/p5-Crypt-OpenSSL-ECDSA: Update to 0.10 - Update WWW Changes: https://metacpan.org/changes/distribution/Crypt-OpenSSL-ECDSA --- security/p5-Crypt-OpenSSL-ECDSA/Makefile | 3 +- security/p5-Crypt-OpenSSL-ECDSA/distinfo | 6 +- .../p5-Crypt-OpenSSL-ECDSA/files/patch-ECDSA.xs | 162 --------------------- security/p5-Crypt-OpenSSL-ECDSA/pkg-descr | 2 +- 4 files changed, 5 insertions(+), 168 deletions(-) diff --git a/security/p5-Crypt-OpenSSL-ECDSA/Makefile b/security/p5-Crypt-OpenSSL-ECDSA/Makefile index ea7f8ff6d087..060d7a3b4ecf 100644 --- a/security/p5-Crypt-OpenSSL-ECDSA/Makefile +++ b/security/p5-Crypt-OpenSSL-ECDSA/Makefile @@ -1,8 +1,7 @@ # Created by: Adam Weinberger PORTNAME= Crypt-OpenSSL-ECDSA -PORTVERSION= 0.08 -PORTREVISION= 1 +PORTVERSION= 0.10 CATEGORIES= security perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/security/p5-Crypt-OpenSSL-ECDSA/distinfo b/security/p5-Crypt-OpenSSL-ECDSA/distinfo index 620bf04e5bbe..3eda3a931761 100644 --- a/security/p5-Crypt-OpenSSL-ECDSA/distinfo +++ b/security/p5-Crypt-OpenSSL-ECDSA/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1476028093 -SHA256 (Crypt-OpenSSL-ECDSA-0.08.tar.gz) = 8439f6af81cc5e656e8b2f4dd86a98faa95d9938dcdcbfc7c22bb358eb5f8deb -SIZE (Crypt-OpenSSL-ECDSA-0.08.tar.gz) = 52955 +TIMESTAMP = 1622214094 +SHA256 (Crypt-OpenSSL-ECDSA-0.10.tar.gz) = 070b6829528c8111c01cd4d264c7cfb5bea7636e25d936f4f87fba8b4e46ff0a +SIZE (Crypt-OpenSSL-ECDSA-0.10.tar.gz) = 53607 diff --git a/security/p5-Crypt-OpenSSL-ECDSA/files/patch-ECDSA.xs b/security/p5-Crypt-OpenSSL-ECDSA/files/patch-ECDSA.xs deleted file mode 100644 index fb3876c847b6..000000000000 --- a/security/p5-Crypt-OpenSSL-ECDSA/files/patch-ECDSA.xs +++ /dev/null @@ -1,162 +0,0 @@ ---- ECDSA.xs.orig 2015-01-02 01:24:13 UTC -+++ ECDSA.xs -@@ -7,9 +7,34 @@ - - #include - #include -+#include - - #include "const-c.inc" - -+ -+#if OPENSSL_VERSION_NUMBER >= 0x10100000L -+#include -+#else -+static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, -+ const BIGNUM **ps) { -+ if (pr != NULL) -+ *pr = sig->r; -+ if (ps != NULL) -+ *ps = sig->s; -+} -+ -+static int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s) -+{ -+ if (r == NULL || s == NULL) -+ return 0; -+ BN_clear_free(sig->r); -+ BN_clear_free(sig->s); -+ sig->r = r; -+ sig->s = s; -+ return 1; -+} -+#endif -+ - MODULE = Crypt::OpenSSL::ECDSA PACKAGE = Crypt::OpenSSL::ECDSA - - PROTOTYPES: ENABLE -@@ -17,7 +42,9 @@ INCLUDE: const-xs.inc - - BOOT: - ERR_load_crypto_strings(); -+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && OPENSSL_VERSION_NUMBER < 0x10100000L - ERR_load_ECDSA_strings(); -+#endif - - #ECDSA_SIG * - #ECDSA_SIG_new() -@@ -61,10 +88,16 @@ ECDSA_do_verify(const unsigned char *dgst, const ECDSA - OUTPUT: - RETVAL - --# These ECDSA_METHOD functions only became available in 1.0.2 -+# These ECDSA_METHOD functions only became available in 1.0.2, -+# but some of them removed again in 1.1.0. - - #if OPENSSL_VERSION_NUMBER >= 0x10002000L - -+int -+ECDSA_size(const EC_KEY *eckey) -+ -+#if OPENSSL_VERSION_NUMBER < 0x10100000L -+ - const ECDSA_METHOD * - ECDSA_OpenSSL() - -@@ -77,9 +110,6 @@ ECDSA_get_default_method() - int - ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) - --int --ECDSA_size(const EC_KEY *eckey) -- - ECDSA_METHOD * - ECDSA_METHOD_new(ECDSA_METHOD *ecdsa_method=0) - -@@ -95,8 +125,8 @@ ECDSA_METHOD_set_name(ECDSA_METHOD *ecdsa_method, char - void - ERR_load_ECDSA_strings() - -- - #endif -+#endif - - - -@@ -135,11 +165,13 @@ SV * - get_r(ecdsa_sig) - ECDSA_SIG *ecdsa_sig - PREINIT: -+ const BIGNUM *r; - unsigned char *to; - STRLEN len; - CODE: - to = malloc(sizeof(char) * 128); -- len = BN_bn2bin(ecdsa_sig->r, to); -+ ECDSA_SIG_get0(ecdsa_sig, &r, NULL); -+ len = BN_bn2bin(r, to); - RETVAL = newSVpvn((const char*)to, len); - free(to); - OUTPUT: -@@ -149,11 +181,13 @@ SV * - get_s(ecdsa_sig) - ECDSA_SIG *ecdsa_sig - PREINIT: -+ const BIGNUM *s; - unsigned char *to; - STRLEN len; - CODE: - to = malloc(sizeof(char) * 128); -- len = BN_bn2bin(ecdsa_sig->s, to); -+ ECDSA_SIG_get0(ecdsa_sig, NULL, &s); -+ len = BN_bn2bin(s, to); - RETVAL = newSVpvn((const char*)to, len); - free(to); - OUTPUT: -@@ -164,26 +198,36 @@ set_r(ecdsa_sig, r_SV) - ECDSA_SIG *ecdsa_sig - SV * r_SV - PREINIT: -- char *s; -+ char *string; - STRLEN len; -+ BIGNUM *r; -+ BIGNUM *s; - CODE: -- s = SvPV(r_SV, len); -- if (ecdsa_sig->r) -- BN_free(ecdsa_sig->r); -- ecdsa_sig->r = BN_bin2bn((const unsigned char *)s, len, NULL); -+ string = SvPV(r_SV, len); -+ r = BN_bin2bn((const unsigned char *)string, len, NULL); -+ ECDSA_SIG_get0(ecdsa_sig, NULL, (const BIGNUM**)&s); -+ s = BN_dup(s); -+ if (NULL == s) -+ croak("Could not duplicate unchanged ECDSA paramater"); -+ ECDSA_SIG_set0(ecdsa_sig, r, s); - - void - set_s(ecdsa_sig, s_SV) - ECDSA_SIG *ecdsa_sig - SV * s_SV - PREINIT: -- char *s; -+ char *string; - STRLEN len; -+ BIGNUM *r; -+ BIGNUM *s; - CODE: -- s = SvPV(s_SV, len); -- if (ecdsa_sig->s) -- BN_free(ecdsa_sig->s); -- ecdsa_sig->s = BN_bin2bn((const unsigned char *)s, len, NULL); -+ string = SvPV(s_SV, len); -+ s = BN_bin2bn((const unsigned char *)string, len, NULL); -+ ECDSA_SIG_get0(ecdsa_sig, (const BIGNUM**)&r, NULL); -+ r = BN_dup(r); -+ if (NULL == r) -+ croak("Could not duplicate unchanged ECDSA paramater"); -+ ECDSA_SIG_set0(ecdsa_sig, r, s); - - - diff --git a/security/p5-Crypt-OpenSSL-ECDSA/pkg-descr b/security/p5-Crypt-OpenSSL-ECDSA/pkg-descr index 564a7069b75b..cef2e47733ed 100644 --- a/security/p5-Crypt-OpenSSL-ECDSA/pkg-descr +++ b/security/p5-Crypt-OpenSSL-ECDSA/pkg-descr @@ -1,4 +1,4 @@ This module provides an interface to the ECDSA (Elliptic Curve Digital Signature Algorithm) functions in OpenSSL. -WWW: https://metacpan.org/pod/Crypt::OpenSSL::ECDSA +WWW: https://metacpan.org/release/Crypt-OpenSSL-ECDSA