aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-09-03 10:58:10 +0000
committerWerner Koch <[email protected]>2023-10-10 14:37:03 +0000
commitacda0a3f3377326f0be987eb385f768513a5d0c9 (patch)
treee6355043ab6f0bb4c8fd6d72da6e51413c0292f1
parentscd:openpgp: New KEY-STATUS attribute. (diff)
downloadgnupg-acda0a3f3377326f0be987eb385f768513a5d0c9.tar.gz
gnupg-acda0a3f3377326f0be987eb385f768513a5d0c9.zip
scd: Add handling of "Algorithm Information" DO.
* cd/app-openpgp.c (data_objects): Add 0x00FA. (do_getattr): Add KEY-ATTR-INFO. -- See the section 4.4.3.11 Algorithm Information in the OpenPGP card functional specification version 3.4.1. Signed-off-by: NIIBE Yutaka <[email protected]> (cherry picked from commit 90d0072165cc5c6888f14462392a211de0c4b232) Some parts where already here.
-rw-r--r--scd/app-openpgp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 942b7814e..cf3684fc8 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1077,6 +1077,7 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name)
{ "MANUFACTURER", 0x0000, -8 },
{ "UIF", 0x0000, -9 }, /* Shortcut for all UIF */
{ "KEY-STATUS", 0x00DE, 6 },
+ { "KEY-ATTR-INFO", 0x00FA, 7 },
{ NULL, 0 }
};
int idx, i, rc;