You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.2 KiB

  1. From 5f751ba5628f9d85e9d8dca9939a93f49d2525d0 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/18] OpenPGP: Include private DO to filesystem at driver
  6. initialization.
  7. In old implementation, the DOs which their access is restricted by
  8. PIN (like DOs 0101 -> 0104) were excluded from the fake filesystem,
  9. leading to that we cannot read their data later, even if we verified PIN.
  10. ---
  11. src/libopensc/card-openpgp.c | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/libopensc/card-openpgp.c b/src/libopensc/card-openpgp.c
  14. index 716052b..ead07ae 100644
  15. --- a/src/libopensc/card-openpgp.c
  16. +++ b/src/libopensc/card-openpgp.c
  17. @@ -357,7 +357,7 @@ pgp_init(sc_card_t *card)
  18. /* Populate MF - add matching blobs listed in the pgp_objects table. */
  19. for (info = priv->pgp_objects; (info != NULL) && (info->id > 0); info++) {
  20. - if (((info->access & READ_MASK) == READ_ALWAYS) &&
  21. + if (((info->access & READ_MASK) != READ_NEVER) &&
  22. (info->get_fn != NULL)) {
  23. child = pgp_new_blob(card, priv->mf, info->id, sc_file_new());
  24. --
  25. 1.9.3