diff options
author | Werner Koch <[email protected]> | 2024-08-05 14:19:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-08-05 14:19:32 +0000 |
commit | a8cef7ebc2b8c3aa1477b61fecfaa8e5d63446d7 (patch) | |
tree | 9075b0342a709f8b08471f007eee7b5410fff03e /scd/app-openpgp.c | |
parent | scd: New getinfo subcommand "dump_state". (diff) | |
download | gnupg-a8cef7ebc2b8c3aa1477b61fecfaa8e5d63446d7.tar.gz gnupg-a8cef7ebc2b8c3aa1477b61fecfaa8e5d63446d7.zip |
scd: New getinfo subcommand "manufacturer"
* scd/command.c (cmd_getinfo): Add subcommand "manufacturer".
* scd/app-openpgp.c (get_manufacturer): Rename to ...
(app_openpgp_manufacturer): this and make global.
--
Example:
$ gpg-connect-agent 'scd getinfo manufacturer 42' /bye
D Magrathea
OK
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 4af4f880e..250c4142e 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -290,8 +290,8 @@ static gpg_error_t change_keyattr_from_string /* Return the OpenPGP card manufacturer name. */ -static const char * -get_manufacturer (unsigned int no) +const char * +app_openpgp_manufacturer (unsigned int no) { /* Note: Make sure that there is no colon or linefeed in the string. */ switch (no) @@ -1273,7 +1273,7 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name) return send_status_printf (ctrl, table[idx].name, "%u %s", app->app_local->manufacturer, - get_manufacturer (app->app_local->manufacturer)); + app_openpgp_manufacturer (app->app_local->manufacturer)); } if (table[idx].special == -9) { |