mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Minor tweak for easier backporting
* scd/app-common.h (APP_CARD): New. Use it in app-*.c to access app->card. -- This should help to make backporting to 2.2 easier.
This commit is contained in:
parent
8d5a9c858d
commit
6d4280b13d
3 changed files with 30 additions and 23 deletions
|
@ -215,6 +215,12 @@ app_get_slot (app_t app)
|
|||
}
|
||||
|
||||
|
||||
/* Macro to access members in app->card. We use this macro because in
|
||||
* 2.2 many members are stored directly in app_t and this way we can
|
||||
* easier backport stuff. */
|
||||
#define APP_CARD(a) ((a)->card)
|
||||
|
||||
|
||||
/*-- app-help.c --*/
|
||||
unsigned int app_help_count_bits (const unsigned char *a, size_t len);
|
||||
gpg_error_t app_help_get_keygrip_string_pk (const void *pk, size_t pklen,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue