From a8cef7ebc2b8c3aa1477b61fecfaa8e5d63446d7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 Aug 2024 16:19:32 +0200 Subject: 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 --- scd/app-openpgp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scd/app-openpgp.c') 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) { -- cgit v1.2.3