1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

scd: New option --application-priority.

* scd/scdaemon.c (oApplicationPriority): New.
(opts): Add "application_priority".
(main): Process option.
* scd/app.c (app_update_priority_list): New.
(get_supported_applications): Take apps from global list.

* tools/gpgconf-comp.c (gc_options_scdaemon): Add option.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-03-28 17:05:20 +01:00
parent 80c069b5e1
commit 97feef8ee9
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
5 changed files with 91 additions and 18 deletions

View file

@ -332,6 +332,21 @@ This option disables the use of the card application named
@var{name}. This is mainly useful for debugging or if a application
with lower priority should be used by default.
@item --application-priority @var{namelist}
@opindex application-priority
This option allows to change the order in which applications of a card
a tried if no specific application was requested. @var{namelist} is a
space or comma delimited list of application names. Unknown names are
simply skipped. Applications not mentioned in the list are put in the
former order at the end of the new priority list.
To get the list of current active applications, use
@cartouche
@smallexample
gpg-connect-agent 'scd getinfo app_list' /bye
@end smallexample
@end cartouche
@end table
All the long options may also be given in the configuration file after
@ -767,4 +782,3 @@ length up to N bytes. If N is not given a default value is used
@command{gpg2}(1)
@end ifset
@include see-also-note.texi