Skip to content

Commit

Permalink
[Backport release-24.05] opensc: 0.25.1 -> 0.26.0 (#355910)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse authored Nov 28, 2024
2 parents 0c5b4ec + f675efc commit 08fa863
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From 6b576118c02241c7e366696be2f16850460fac35 Mon Sep 17 00:00:00 2001
From: Michael Adler <[email protected]>
Date: Wed, 27 Nov 2024 09:23:04 +0100
Subject: [PATCH] Revert "Desctivate driver for MICARDO"

This reverts commit 13951f633b5f1df14d5c49310cd397a42a467f36.
---
src/libopensc/ctx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libopensc/ctx.c b/src/libopensc/ctx.c
index 6fbab389c..2316209ee 100644
--- a/src/libopensc/ctx.c
+++ b/src/libopensc/ctx.c
@@ -148,6 +148,7 @@ static const struct _sc_driver_entry internal_card_drivers[] = {
* put the muscle driver first to cope with this bug. */
{ "muscle", (void *(*)(void)) sc_get_muscle_driver },
{ "sc-hsm", (void *(*)(void)) sc_get_sc_hsm_driver },
+ { "mcrd", (void *(*)(void)) sc_get_mcrd_driver },
{ "setcos", (void *(*)(void)) sc_get_setcos_driver },
{ "PIV-II", (void *(*)(void)) sc_get_piv_driver },
{ "cac", (void *(*)(void)) sc_get_cac_driver },
@@ -175,7 +176,6 @@ static const struct _sc_driver_entry old_card_drivers[] = {
{ "atrust-acos",(void *(*)(void)) sc_get_atrust_acos_driver },
{ "cyberflex", (void *(*)(void)) sc_get_cyberflex_driver },
{ "flex", (void *(*)(void)) sc_get_cryptoflex_driver },
- { "mcrd", (void *(*)(void)) sc_get_mcrd_driver },
{ NULL, NULL }
};
// clang-format on
--
2.47.1

8 changes: 6 additions & 2 deletions pkgs/tools/security/opensc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@

stdenv.mkDerivation rec {
pname = "opensc";
version = "0.25.1";
version = "0.26.0";

src = fetchFromGitHub {
owner = "OpenSC";
repo = "OpenSC";
rev = version;
sha256 = "sha256-Ktvp/9Hca87qWmDlQhFzvWsr7TvNpIAvOFS+4zTZbB8=";
sha256 = "sha256-EIQ9YpIGwckg/JjpK0S2ZYdFf/0YC4KaWcLXRNRMuzA=";
};

patches = [
./0001-Revert-Desctivate-driver-for-MICARDO.patch
];

nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [
zlib readline openssl libassuan
Expand Down

0 comments on commit 08fa863

Please sign in to comment.