mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
opensc: bump to git codebase of 20141126 and rebase GnuK patches
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
From ecc6460d17147b37def27a9b776e1fc5a61408d0 Mon Sep 17 00:00:00 2001
|
||||
From 00a2c08c9125103ee0bff9af9e7ff42c5cdc14fe Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?=
|
||||
<ng.hong.quan@gmail.com>
|
||||
Date: Fri, 12 Apr 2013 17:24:00 +0700
|
||||
Subject: [PATCH 02/18] OpenPGP: Add Gnuk in pkcs15 emulation layer.
|
||||
Subject: [PATCH 02/26] OpenPGP: Add Gnuk in pkcs15 emulation layer.
|
||||
|
||||
---
|
||||
src/libopensc/pkcs15-openpgp.c | 6 ++++--
|
||||
@@ -10,10 +10,10 @@ Subject: [PATCH 02/18] OpenPGP: Add Gnuk in pkcs15 emulation layer.
|
||||
2 files changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/libopensc/pkcs15-openpgp.c b/src/libopensc/pkcs15-openpgp.c
|
||||
index d9dc074..5a8a1ca 100644
|
||||
index 4daaa98..fdf720a 100644
|
||||
--- a/src/libopensc/pkcs15-openpgp.c
|
||||
+++ b/src/libopensc/pkcs15-openpgp.c
|
||||
@@ -155,7 +155,8 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
||||
@@ -151,7 +151,8 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
||||
u8 c4data[10];
|
||||
u8 c5data[70];
|
||||
int r, i;
|
||||
@@ -23,7 +23,7 @@ index d9dc074..5a8a1ca 100644
|
||||
sc_path_t path;
|
||||
sc_file_t *file;
|
||||
|
||||
@@ -367,7 +368,8 @@ failed: sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Failed to initialize OpenPGP e
|
||||
@@ -363,7 +364,8 @@ failed: sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Failed to initialize OpenPGP e
|
||||
|
||||
static int openpgp_detect_card(sc_pkcs15_card_t *p15card)
|
||||
{
|
||||
@@ -34,17 +34,17 @@ index d9dc074..5a8a1ca 100644
|
||||
else
|
||||
return SC_ERROR_WRONG_CARD;
|
||||
diff --git a/src/libopensc/pkcs15-syn.c b/src/libopensc/pkcs15-syn.c
|
||||
index e2f6004..a9f8c0b 100644
|
||||
index ffbf642..d2c086c 100644
|
||||
--- a/src/libopensc/pkcs15-syn.c
|
||||
+++ b/src/libopensc/pkcs15-syn.c
|
||||
@@ -112,6 +112,7 @@ int sc_pkcs15_is_emulation_only(sc_card_t *card)
|
||||
@@ -115,6 +115,7 @@ int sc_pkcs15_is_emulation_only(sc_card_t *card)
|
||||
case SC_CARD_TYPE_GEMSAFEV1_PTEID:
|
||||
case SC_CARD_TYPE_OPENPGP_V1:
|
||||
case SC_CARD_TYPE_OPENPGP_V2:
|
||||
+ case SC_CARD_TYPE_OPENPGP_GNUK:
|
||||
case SC_CARD_TYPE_SC_HSM:
|
||||
return 1;
|
||||
default:
|
||||
case SC_CARD_TYPE_DNIE_BASE:
|
||||
case SC_CARD_TYPE_DNIE_BLANK:
|
||||
--
|
||||
1.9.3
|
||||
2.1.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user