mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
app-crypt/eid-mw: drop 5.1.31-r1
Signed-off-by: Amy Liffey <amynka@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST eid-mw-5.1.31.tar.gz 17662815 BLAKE2B 69c37d44f295e403ea0815fa707453a7bb702d208e8218a59303b6aedcf1dda8a8bf6f8da059976b62fe958cda9fe868230319c7e03f7d777b008a00a98e952b SHA512 3929d4220e22664659fd70672ce1de0851dbc4ab727ab6ad11a5c6267599f4e3a17f8cbcf01e21e129236e3693b3e9db0432aac1f3d9bfb803a64cb6fb5ae2ee
|
||||
DIST eid-mw-5.2.2.tar.gz 17651420 BLAKE2B a1b52149b4748126fed67c4b2b929c3bbe8f1f78b72b1834d01d4b477f83211fff5e8c943d4d7a8d622e39dca9d89c15a6efd6ea9641b4f91d5d07a7bb757add SHA512 d811ae23fa4399ee9d5b0526addc7a229f181cf37cc1f1c7a49af40887aa9051e45970a0cc7f4244e60ce601ef7cfe9c3407eed4c6764e4576eb39a80f9871e7
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools desktop gnome2-utils
|
||||
|
||||
DESCRIPTION="Electronic Identity Card middleware supplied by the Belgian Federal Government"
|
||||
HOMEPAGE="https://eid.belgium.be"
|
||||
SRC_URI="https://codeload.github.com/fedict/${PN}/tar.gz/v${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="+dialogs +gtk p11-kit"
|
||||
|
||||
RDEPEND="dev-libs/openssl:=
|
||||
sys-apps/pcsc-lite
|
||||
gtk? (
|
||||
x11-libs/gdk-pixbuf[jpeg]
|
||||
x11-libs/gtk+:3
|
||||
dev-libs/libxml2:=
|
||||
net-misc/curl[ssl]
|
||||
net-libs/libproxy
|
||||
app-crypt/pinentry[gtk]
|
||||
)
|
||||
p11-kit? ( app-crypt/p11-kit )"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
REQUIRED_USE="dialogs? ( gtk )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/0001-Do-not-build-xpi-module.patch"
|
||||
"${FILESDIR}/0001-Fix-libdir-for-manifestdir.patch"
|
||||
"${FILESDIR}/0001-Remove-uml-build.patch"
|
||||
"${FILESDIR}/${P}-openssl-4.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Buggy internal versioning when autoreconf a tarball release.
|
||||
# Weird numbering is required otherwise we get a seg fault in
|
||||
# about-eid-mw program.
|
||||
echo "${PV}-v${PV}" > .version
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable dialogs) \
|
||||
$(use_enable p11-kit p11kit) \
|
||||
$(use_with gtk gtkvers '3') \
|
||||
--with-gnu-ld
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -type f -name '*.la' -delete || die
|
||||
if use gtk; then
|
||||
domenu plugins_tools/eid-viewer/eid-viewer.desktop
|
||||
doicon plugins_tools/eid-viewer/gtk/eid-viewer.png
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gtk; then
|
||||
gnome2_schemas_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
local peimpl=$(eselect --brief --colour=no pinentry show)
|
||||
case "${peimpl}" in
|
||||
*gnome*|*qt*) ;;
|
||||
*) ewarn "The pinentry front-end currently selected is not supported by eid-mw."
|
||||
ewarn "You may be prompted for your pin code in an inaccessible shell!!"
|
||||
ewarn "Please select pinentry-gnome3 as default pinentry provider:"
|
||||
ewarn " # eselect pinentry set pinentry-gnome3"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gtk; then
|
||||
gnome2_schemas_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
fi
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
https://github.com/Fedict/eid-mw/commit/58875f5e2c7ef8d211a20561adb8aba69342b07f
|
||||
|
||||
From 58875f5e2c7ef8d211a20561adb8aba69342b07f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Charlier <Thomas.Charlier@zetes.com>
|
||||
Date: Wed, 14 Oct 2026 12:04:29 +0200
|
||||
Subject: [PATCH] eid-viewer macOS and linux: Fix eID Viewer compatibility with
|
||||
OpenSSL 4.0
|
||||
|
||||
OpenSSL 4.0 makes ASN1_STRING opaque, preventing direct access
|
||||
to its data and length fields.
|
||||
---
|
||||
plugins_tools/eid-viewer/verify.c | 13 +++++++------
|
||||
1 file changed, 7 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/plugins_tools/eid-viewer/verify.c b/plugins_tools/eid-viewer/verify.c
|
||||
index f4262bca6..f32f38794 100644
|
||||
--- a/plugins_tools/eid-viewer/verify.c
|
||||
+++ b/plugins_tools/eid-viewer/verify.c
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
#define X509_get0_extensions(ce) ((ce)->cert_info->extensions)
|
||||
+#define ASN1_STRING_get0_data ASN1_STRING_data
|
||||
|
||||
#define X509_get0_tbs_sigalg(ci) ((ci)->sig_alg)
|
||||
#define X509_OBJECT_new() calloc(sizeof(X509_OBJECT), 1)
|
||||
@@ -105,7 +106,7 @@ enum eid_vwr_result eid_vwr_verify_int_cert(const void *certificate, size_t cert
|
||||
for(j=0; j<sk_GENERAL_NAME_num(point->distpoint->name.fullname); j++) {
|
||||
GENERAL_NAME *name = sk_GENERAL_NAME_value(point->distpoint->name.fullname, j);
|
||||
if(name->type == GEN_URI) {
|
||||
- url = (char*)name->d.ia5->data;
|
||||
+ url = (char*)ASN1_STRING_get0_data(name->d.ia5);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,13 +186,13 @@ enum eid_vwr_result eid_vwr_verify_cert_full(const void *certificate, size_t cer
|
||||
|
||||
for(i=0; i<sk_X509_EXTENSION_num(exts); i++) {
|
||||
X509_EXTENSION *ex = sk_X509_EXTENSION_value(exts, i);
|
||||
- ASN1_OBJECT *obj = X509_EXTENSION_get_object(ex);
|
||||
+ const ASN1_OBJECT *obj = X509_EXTENSION_get_object(ex);
|
||||
int nid = OBJ_obj2nid(obj);
|
||||
if(nid == NID_info_access) {
|
||||
const X509V3_EXT_METHOD *method;
|
||||
void *ext_str;
|
||||
- ASN1_OCTET_STRING *exval = X509_EXTENSION_get_data(ex);
|
||||
- const unsigned char *p = exval->data;
|
||||
+ const ASN1_OCTET_STRING *exval = X509_EXTENSION_get_data(ex);
|
||||
+ const unsigned char *p = ASN1_STRING_get0_data(exval);
|
||||
STACK_OF(CONF_VALUE) *nval = NULL;
|
||||
|
||||
if(!(method = X509V3_EXT_get(ex)) || !(method->i2v)) {
|
||||
@@ -200,9 +201,9 @@ enum eid_vwr_result eid_vwr_verify_cert_full(const void *certificate, size_t cer
|
||||
goto exit;
|
||||
}
|
||||
if(method->it) {
|
||||
- ext_str = ASN1_item_d2i(NULL, &p, exval->length, ASN1_ITEM_ptr(method->it));
|
||||
+ ext_str = ASN1_item_d2i(NULL, &p, ASN1_STRING_length(exval), ASN1_ITEM_ptr(method->it));
|
||||
} else {
|
||||
- ext_str = method->d2i(NULL, &p, exval->length);
|
||||
+ ext_str = method->d2i(NULL, &p, ASN1_STRING_length(exval));
|
||||
}
|
||||
if(!(nval = method->i2v(method, ext_str, NULL))) {
|
||||
log_ssl_error("Could not read OCSP URL from certificate");
|
||||
Reference in New Issue
Block a user