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,18 +1,18 @@
|
||||
From d8f63eb6fcc1441c12a44850da2fa22a6fe81634 Mon Sep 17 00:00:00 2001
|
||||
From 5110ae3ba33d165c43ea5eca8f929a82d81cb3fe 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: Thu, 11 Apr 2013 11:47:51 +0700
|
||||
Subject: [PATCH 12/18] OpenPGP: Support write certificate for Gnuk.
|
||||
Subject: [PATCH 12/26] OpenPGP: Support write certificate for Gnuk.
|
||||
|
||||
---
|
||||
src/libopensc/card-openpgp.c | 158 +++++++++++++++++++++++++++++++++----------
|
||||
1 file changed, 123 insertions(+), 35 deletions(-)
|
||||
|
||||
diff --git a/src/libopensc/card-openpgp.c b/src/libopensc/card-openpgp.c
|
||||
index 8a1a270..d9db948 100644
|
||||
index 1913eca..7cea84f 100644
|
||||
--- a/src/libopensc/card-openpgp.c
|
||||
+++ b/src/libopensc/card-openpgp.c
|
||||
@@ -725,6 +725,8 @@ pgp_iterate_blobs(struct blob *blob, int level, void (*func)())
|
||||
@@ -727,6 +727,8 @@ pgp_iterate_blobs(struct blob *blob, int level, void (*func)())
|
||||
static int
|
||||
pgp_read_blob(sc_card_t *card, struct blob *blob)
|
||||
{
|
||||
@@ -21,7 +21,7 @@ index 8a1a270..d9db948 100644
|
||||
if (blob->data != NULL)
|
||||
return SC_SUCCESS;
|
||||
if (blob->info == NULL)
|
||||
@@ -735,6 +737,11 @@ pgp_read_blob(sc_card_t *card, struct blob *blob)
|
||||
@@ -737,6 +739,11 @@ pgp_read_blob(sc_card_t *card, struct blob *blob)
|
||||
size_t buf_len = (card->caps & SC_CARD_CAP_APDU_EXT)
|
||||
? sizeof(buffer) : 256;
|
||||
|
||||
@@ -33,7 +33,7 @@ index 8a1a270..d9db948 100644
|
||||
/* Buffer length for Gnuk pubkey */
|
||||
if (card->type == SC_CARD_TYPE_OPENPGP_GNUK &&
|
||||
(blob->id == 0xa400 || blob->id == 0xb600 || blob->id == 0xb800
|
||||
@@ -1190,49 +1197,75 @@ pgp_get_data(sc_card_t *card, unsigned int tag, u8 *buf, size_t buf_len)
|
||||
@@ -1192,49 +1199,75 @@ pgp_get_data(sc_card_t *card, unsigned int tag, u8 *buf, size_t buf_len)
|
||||
LOG_FUNC_RETURN(card->ctx, apdu.resplen);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ index 8a1a270..d9db948 100644
|
||||
|
||||
/* Extended Header list (004D DO) needs a variant of PUT DATA command */
|
||||
if (tag == 0x004D) {
|
||||
@@ -1258,15 +1291,70 @@ pgp_put_data(sc_card_t *card, unsigned int tag, const u8 *buf, size_t buf_len)
|
||||
@@ -1260,15 +1293,70 @@ pgp_put_data(sc_card_t *card, unsigned int tag, const u8 *buf, size_t buf_len)
|
||||
apdu.lc = buf_len;
|
||||
}
|
||||
else {
|
||||
@@ -216,5 +216,5 @@ index 8a1a270..d9db948 100644
|
||||
if (r == SC_ERROR_SECURITY_STATUS_NOT_SATISFIED) {
|
||||
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "Please verify PIN first.");
|
||||
--
|
||||
1.9.3
|
||||
2.1.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user