mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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
This commit is contained in:
parent
f1e3a23d9e
commit
a8cef7ebc2
3 changed files with 12 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue