diff options
| author | NIIBE Yutaka <[email protected]> | 2020-09-03 10:58:10 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2020-09-03 10:58:10 +0000 |
| commit | 90d0072165cc5c6888f14462392a211de0c4b232 (patch) | |
| tree | cc08714e027598961d9299fb20dbe53ad936d9f4 /scd/app-openpgp.c | |
| parent | gpg: Fix segv importing certain keys. (diff) | |
| download | gnupg-90d0072165cc5c6888f14462392a211de0c4b232.tar.gz gnupg-90d0072165cc5c6888f14462392a211de0c4b232.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]>
Diffstat (limited to 'scd/app-openpgp.c')
| -rw-r--r-- | scd/app-openpgp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 13fdd894f..2a77a5de8 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -121,6 +121,7 @@ static struct { { 0x00D7, 0, 0x6E, 1, 0, 0, 0, 0, "UIF for Decryption"}, { 0x00D8, 0, 0x6E, 1, 0, 0, 0, 0, "UIF for Authentication"}, { 0x00F9, 0, 0, 1, 0, 0, 0, 0, "KDF data object"}, + { 0x00FA, 0, 0, 0, 0, 0, 0, 0, "Algorithm Information"}, { 0 } }; @@ -1084,6 +1085,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; |
