1 From 2d348b60ab8c22791b56f291600954abd716a791 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?=
3 <ng.hong.quan@gmail.com>
4 Date: Fri, 22 Mar 2013 17:37:16 +0700
5 Subject: [PATCH 03/26] OpenPGP: Include private DO to filesystem at driver
8 In old implementation, the DOs which their access is restricted by
9 PIN (like DOs 0101 -> 0104) were excluded from the fake filesystem,
10 leading to that we cannot read their data later, even if we verified PIN.
12 src/libopensc/card-openpgp.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/src/libopensc/card-openpgp.c b/src/libopensc/card-openpgp.c
16 index c785a55..1cc3923 100644
17 --- a/src/libopensc/card-openpgp.c
18 +++ b/src/libopensc/card-openpgp.c
19 @@ -357,7 +357,7 @@ pgp_init(sc_card_t *card)
21 /* Populate MF - add matching blobs listed in the pgp_objects table. */
22 for (info = priv->pgp_objects; (info != NULL) && (info->id > 0); info++) {
23 - if (((info->access & READ_MASK) == READ_ALWAYS) &&
24 + if (((info->access & READ_MASK) != READ_NEVER) &&
25 (info->get_fn != NULL)) {
26 child = pgp_new_blob(card, priv->mf, info->id, sc_file_new());