* [gentoo-commits] repo/proj/libressl:master commit in: app-crypt/tpm-tools/, app-crypt/tpm-tools/files/
@ 2022-07-05 21:19 Quentin Retornaz
0 siblings, 0 replies; only message in thread
From: Quentin Retornaz @ 2022-07-05 21:19 UTC (permalink / raw
To: gentoo-commits
commit: 211b332e9782f51eb53c57dc9fa5ed00ca816d31
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Tue Jul 5 01:51:13 2022 +0000
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Tue Jul 5 21:18:31 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=211b332e
app-crypt/tpm-tools: Remove package
Works with libressl-3.5.x and tpm-tools-1.3.9.2::gentoo.
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
app-crypt/tpm-tools/Manifest | 1 -
.../files/tpm-tools-1.3.9.1-openssl-1.1.patch | 241 ---------------------
app-crypt/tpm-tools/metadata.xml | 21 --
app-crypt/tpm-tools/tpm-tools-1.3.9.1-r1.ebuild | 50 -----
4 files changed, 313 deletions(-)
diff --git a/app-crypt/tpm-tools/Manifest b/app-crypt/tpm-tools/Manifest
deleted file mode 100644
index 4d121ec..0000000
--- a/app-crypt/tpm-tools/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST tpm-tools-1.3.9.1.tar.gz 482859 BLAKE2B ee915679e23bead04672bf719ce59bb6f20b550be39855b5304caeff554bf54d3cfe9104d464af7762388995e51d2bed0f9bedad83e42146cb7457382d09f4b2 SHA512 63a9c0e761cd890cc0a218de79a9c0169e151aba7824c19bf6b7ec894cf41c4950de1f63bd849aa93a4bdff36cf0fe557bc17113912b6d77f57f2bf1190b6a08
diff --git a/app-crypt/tpm-tools/files/tpm-tools-1.3.9.1-openssl-1.1.patch b/app-crypt/tpm-tools/files/tpm-tools-1.3.9.1-openssl-1.1.patch
deleted file mode 100644
index a5747db..0000000
--- a/app-crypt/tpm-tools/files/tpm-tools-1.3.9.1-openssl-1.1.patch
+++ /dev/null
@@ -1,241 +0,0 @@
-From 31d9cebc43833de939a0e13be0110ed830b66cbd Mon Sep 17 00:00:00 2001
-From: Alon Bar-Lev <alon.barlev@gmail.com>
-Date: Sat, 8 Dec 2018 23:28:54 +0200
-Subject: [PATCH] data_import.c: support openssl-1.1
-
-Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
-Bug: https://sourceforge.net/p/trousers/bugs/227/
----
- src/data_mgmt/data_import.c | 159 +++++++++++++++++++++++++-----------
- 1 file changed, 112 insertions(+), 47 deletions(-)
-
-diff --git a/src/data_mgmt/data_import.c b/src/data_mgmt/data_import.c
-index f534717..33c76e7 100644
---- a/src/data_mgmt/data_import.c
-+++ b/src/data_mgmt/data_import.c
-@@ -39,6 +39,30 @@
- #include <openssl/evp.h>
- #include <openssl/err.h>
-
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
-+static void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) {
-+ if ( n )
-+ *n = r->n;
-+ if ( e )
-+ *e = r->e;
-+ if ( d )
-+ *d = r->d;
-+}
-+static void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q) {
-+ if ( p )
-+ *p = r->p;
-+ if ( q )
-+ *q = r->q;
-+}
-+static void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1, const BIGNUM **dmq1, const BIGNUM **iqmp) {
-+ if ( dmp1 )
-+ *dmp1 = r->dmp1;
-+ if ( dmq1 )
-+ *dmq1 = r->dmq1;
-+ if ( iqmp )
-+ *iqmp = r->iqmp;
-+}
-+#endif
-
- /*
- * Global variables
-@@ -372,7 +396,7 @@ readX509Cert( const char *a_pszFile,
- goto out;
- }
-
-- if ( EVP_PKEY_type( pKey->type ) != EVP_PKEY_RSA ) {
-+ if ( EVP_PKEY_base_id( pKey ) != EVP_PKEY_RSA ) {
- logError( TOKEN_RSA_KEY_ERROR );
-
- X509_free( pX509 );
-@@ -691,17 +715,35 @@ createRsaPubKeyObject( RSA *a_pRsa,
-
- int rc = -1;
-
-- int nLen = BN_num_bytes( a_pRsa->n );
-- int eLen = BN_num_bytes( a_pRsa->e );
-+ const BIGNUM *bn;
-+ const BIGNUM *be;
-+ int nLen;
-+ int eLen;
-+ CK_BYTE *n = NULL;
-+ CK_BYTE *e = NULL;
-+
-+ RSA_get0_key( a_pRsa, &bn, &be, NULL );
-+
-+ nLen = BN_num_bytes( bn );
-+ eLen = BN_num_bytes( be );
-+ n = malloc( nLen );
-+ e = malloc( eLen );
-+
-+ if ( !n || !e ) {
-+ logError( TOKEN_MEMORY_ERROR );
-+ goto out;
-+ }
-+
-+ // Get binary representations of the RSA key information
-+ BN_bn2bin( bn, n );
-+ BN_bn2bin( be, e );
-
-+ {
- CK_RV rv;
-
- CK_BBOOL bTrue = TRUE;
- CK_BBOOL bFalse = FALSE;
-
-- CK_BYTE *n = malloc( nLen );
-- CK_BYTE *e = malloc( eLen );
--
- CK_OBJECT_CLASS clPubClass = CKO_PUBLIC_KEY;
- CK_KEY_TYPE tKeyType = CKK_RSA;
- CK_BBOOL bPrivate = ( !g_bPublic ) ? TRUE : FALSE;
-@@ -726,21 +768,13 @@ createRsaPubKeyObject( RSA *a_pRsa,
-
- *a_hObject = 0;
-
-- if ( !n || !e ) {
-- logError( TOKEN_MEMORY_ERROR );
-- goto out;
-- }
--
-- // Get binary representations of the RSA key information
-- BN_bn2bin( a_pRsa->n, n );
-- BN_bn2bin( a_pRsa->e, e );
--
- // Create the RSA public key object
- rv = createObject( a_hSession, tAttr, ulAttrCount, a_hObject );
- if ( rv != CKR_OK )
- goto out;
-
- rc = 0;
-+ }
-
- out:
- free( n );
-@@ -760,29 +794,74 @@ createRsaPrivKeyObject( RSA *a_pRsa,
-
- int rc = -1;
-
-- int nLen = BN_num_bytes( a_pRsa->n );
-- int eLen = BN_num_bytes( a_pRsa->e );
-- int dLen = BN_num_bytes( a_pRsa->d );
-- int pLen = BN_num_bytes( a_pRsa->p );
-- int qLen = BN_num_bytes( a_pRsa->q );
-- int dmp1Len = BN_num_bytes( a_pRsa->dmp1 );
-- int dmq1Len = BN_num_bytes( a_pRsa->dmq1 );
-- int iqmpLen = BN_num_bytes( a_pRsa->iqmp );
-+ const BIGNUM *bn;
-+ const BIGNUM *be;
-+ const BIGNUM *bd;
-+ const BIGNUM *bp;
-+ const BIGNUM *bq;
-+ const BIGNUM *bdmp1;
-+ const BIGNUM *bdmq1;
-+ const BIGNUM *biqmp;
-+ int nLen;
-+ int eLen;
-+ int dLen;
-+ int pLen;
-+ int qLen;
-+ int dmp1Len;
-+ int dmq1Len;
-+ int iqmpLen;
-+ CK_BYTE *n = NULL;
-+ CK_BYTE *e = NULL;
-+ CK_BYTE *d = NULL;
-+ CK_BYTE *p = NULL;
-+ CK_BYTE *q = NULL;
-+ CK_BYTE *dmp1 = NULL;
-+ CK_BYTE *dmq1 = NULL;
-+ CK_BYTE *iqmp = NULL;
-+
-+ RSA_get0_key( a_pRsa, &bn, &be, &bd);
-+ RSA_get0_factors( a_pRsa, &bp, &bq);
-+ RSA_get0_crt_params( a_pRsa, &bdmp1, &bdmq1, &biqmp );
-+
-+ nLen = BN_num_bytes( bn );
-+ eLen = BN_num_bytes( be );
-+ dLen = BN_num_bytes( bd );
-+ pLen = BN_num_bytes( bp );
-+ qLen = BN_num_bytes( bq );
-+ dmp1Len = BN_num_bytes( bdmp1 );
-+ dmq1Len = BN_num_bytes( bdmq1 );
-+ iqmpLen = BN_num_bytes( biqmp );
-+
-+ n = malloc( nLen );
-+ e = malloc( eLen );
-+ d = malloc( dLen );
-+ p = malloc( pLen );
-+ q = malloc( qLen );
-+ dmp1 = malloc( dmp1Len );
-+ dmq1 = malloc( dmq1Len );
-+ iqmp = malloc( iqmpLen );
-
-+ if ( !n || !e || !d || !p || !q || !dmp1 || !dmq1 || !iqmp ) {
-+ logError( TOKEN_MEMORY_ERROR );
-+ goto out;
-+ }
-+
-+ // Get binary representations of the RSA key information
-+ BN_bn2bin( bn, n );
-+ BN_bn2bin( be, e );
-+ BN_bn2bin( bd, d );
-+ BN_bn2bin( bp, p );
-+ BN_bn2bin( bq, q );
-+ BN_bn2bin( bdmp1, dmp1 );
-+ BN_bn2bin( bdmq1, dmq1 );
-+ BN_bn2bin( biqmp, iqmp );
-+
-+ {
- CK_RV rv;
-
- CK_BBOOL bTrue = TRUE;
- CK_BBOOL bFalse = FALSE;
-
-- CK_BYTE *n = malloc( nLen );
-- CK_BYTE *e = malloc( eLen );
-- CK_BYTE *d = malloc( dLen );
-- CK_BYTE *p = malloc( pLen );
-- CK_BYTE *q = malloc( qLen );
-- CK_BYTE *dmp1 = malloc( dmp1Len );
-- CK_BYTE *dmq1 = malloc( dmq1Len );
-- CK_BYTE *iqmp = malloc( iqmpLen );
--
- CK_OBJECT_CLASS clPrivClass = CKO_PRIVATE_KEY;
- CK_KEY_TYPE tKeyType = CKK_RSA;
- CK_BBOOL bPrivate = ( !g_bPublic ) ? TRUE : FALSE;
-@@ -815,25 +894,11 @@ createRsaPrivKeyObject( RSA *a_pRsa,
-
- *a_hObject = 0;
-
-- if ( !n || !e || !d || !p || !q || !dmp1 || !dmq1 || !iqmp ) {
-- logError( TOKEN_MEMORY_ERROR );
-- goto out;
-- }
--
-- // Get binary representations of the RSA key information
-- BN_bn2bin( a_pRsa->n, n );
-- BN_bn2bin( a_pRsa->e, e );
-- BN_bn2bin( a_pRsa->d, d );
-- BN_bn2bin( a_pRsa->p, p );
-- BN_bn2bin( a_pRsa->q, q );
-- BN_bn2bin( a_pRsa->dmp1, dmp1 );
-- BN_bn2bin( a_pRsa->dmq1, dmq1 );
-- BN_bn2bin( a_pRsa->iqmp, iqmp );
--
- // Create the RSA private key object
- rv = createObject( a_hSession, tAttr, ulAttrCount, a_hObject );
- if ( rv != CKR_OK )
- goto out;
-+ }
-
- rc = 0;
-
---
-2.19.2
-
diff --git a/app-crypt/tpm-tools/metadata.xml b/app-crypt/tpm-tools/metadata.xml
deleted file mode 100644
index d008406..0000000
--- a/app-crypt/tpm-tools/metadata.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>salah.coronya@gmail.com</email>
- <name>Salah Coronya</name>
- </maintainer>
- <maintainer type="project">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <use>
- <flag name="pkcs11">
- Build Token data management utilities based on OpenCryptoki's
- (<pkg>dev-libs/opencryptoki</pkg>) PKCS#11 implementation.
- </flag>
- </use>
- <upstream>
- <remote-id type="sourceforge">trousers</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/app-crypt/tpm-tools/tpm-tools-1.3.9.1-r1.ebuild b/app-crypt/tpm-tools/tpm-tools-1.3.9.1-r1.ebuild
deleted file mode 100644
index 2f87a05..0000000
--- a/app-crypt/tpm-tools/tpm-tools-1.3.9.1-r1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic
-
-DESCRIPTION="TrouSerS' support tools for the Trusted Platform Modules"
-HOMEPAGE="http://trousers.sourceforge.net"
-SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz"
-
-LICENSE="CPL-1.0"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~m68k ~s390 x86"
-IUSE="nls pkcs11 debug"
-
-DEPEND=">=app-crypt/trousers-0.3.0
- dev-libs/openssl:0=
- pkcs11? ( dev-libs/opencryptoki )"
-RDEPEND="${DEPEND}"
-BDEPEND="nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}"
-
-PATCHES=(
- "${FILESDIR}/${P}-openssl-1.1.patch"
-)
-
-src_prepare() {
- default
-
- sed -i -r \
- -e '/CFLAGS/s/ -m64//' \
- configure.ac || die
-
- eautoreconf
-}
-
-src_configure() {
- append-cppflags $(usex debug -DDEBUG -DNDEBUG)
-
- econf \
- $(use_enable nls) \
- $(use pkcs11 || echo --disable-pkcs11-support)
-}
-
-src_install() {
- default
- find "${D}" -name '*.la' -delete || die
-}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-05 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 21:19 [gentoo-commits] repo/proj/libressl:master commit in: app-crypt/tpm-tools/, app-crypt/tpm-tools/files/ Quentin Retornaz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox