mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 15:23:07 +01:00
opensc: update source, refresh patches
Also import two new GnuK-related patches. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -10,11 +10,11 @@ This object is used by TrueCrypt.
|
||||
src/libopensc/pkcs15-openpgp.c | 35 +++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 35 insertions(+)
|
||||
|
||||
diff --git a/src/libopensc/pkcs15-openpgp.c b/src/libopensc/pkcs15-openpgp.c
|
||||
index fdf720a..fea2805 100644
|
||||
--- a/src/libopensc/pkcs15-openpgp.c
|
||||
+++ b/src/libopensc/pkcs15-openpgp.c
|
||||
@@ -32,6 +32,7 @@
|
||||
Index: opensc-20150513/src/libopensc/pkcs15-openpgp.c
|
||||
===================================================================
|
||||
--- opensc-20150513.orig/src/libopensc/pkcs15-openpgp.c
|
||||
+++ opensc-20150513/src/libopensc/pkcs15-openpgp.c
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "log.h"
|
||||
|
||||
int sc_pkcs15emu_openpgp_init_ex(sc_pkcs15_card_t *, sc_pkcs15emu_opt_t *);
|
||||
@@ -22,7 +22,7 @@ index fdf720a..fea2805 100644
|
||||
|
||||
|
||||
#define PGP_USER_PIN_FLAGS (SC_PKCS15_PIN_FLAG_CASE_SENSITIVE \
|
||||
@@ -41,6 +42,8 @@ int sc_pkcs15emu_openpgp_init_ex(sc_pkcs15_card_t *, sc_pkcs15emu_opt_t *);
|
||||
@@ -43,6 +44,8 @@ int sc_pkcs15emu_openpgp_init_ex(sc_pkcs
|
||||
| SC_PKCS15_PIN_FLAG_UNBLOCK_DISABLED \
|
||||
| SC_PKCS15_PIN_FLAG_SO_PIN)
|
||||
|
||||
@@ -31,7 +31,7 @@ index fdf720a..fea2805 100644
|
||||
typedef struct _pgp_pin_cfg {
|
||||
const char *label;
|
||||
int reference;
|
||||
@@ -355,6 +358,9 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card_t *p15card)
|
||||
@@ -357,6 +360,9 @@ sc_pkcs15emu_openpgp_init(sc_pkcs15_card
|
||||
goto failed;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ index fdf720a..fea2805 100644
|
||||
return 0;
|
||||
|
||||
failed: sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Failed to initialize OpenPGP emulation: %s\n",
|
||||
@@ -362,6 +368,35 @@ failed: sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "Failed to initialize OpenPGP e
|
||||
@@ -364,6 +370,35 @@ failed: sc_debug(card->ctx, SC_LOG_DEBUG
|
||||
return r;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,3 @@ index fdf720a..fea2805 100644
|
||||
static int openpgp_detect_card(sc_pkcs15_card_t *p15card)
|
||||
{
|
||||
if (p15card->card->type == SC_CARD_TYPE_OPENPGP_V1 || p15card->card->type == SC_CARD_TYPE_OPENPGP_V2
|
||||
--
|
||||
2.1.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user