mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd:p15: Read certificates in extended mode.
* scd/app-p15.c (readcert_by_cdf): Allow reading in extended mode. * scd/app-common.h (app_get_slot): New. -- Signed-off-by: Werner Koch <wk@gnupg.org> (Back ported from master) Added app_get_slot.
This commit is contained in:
parent
64142caafe
commit
368f006a28
2 changed files with 17 additions and 1 deletions
|
@ -119,6 +119,19 @@ struct app_ctx_s {
|
|||
} fnc;
|
||||
};
|
||||
|
||||
|
||||
/* Helper to get the slot from an APP object. */
|
||||
static inline int
|
||||
app_get_slot (app_t app)
|
||||
{
|
||||
/* Note that this is a similar function of the one in 2.3 which we
|
||||
* use to make back porting easier. */
|
||||
if (app)
|
||||
return app->slot;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/*-- app-help.c --*/
|
||||
unsigned int app_help_count_bits (const unsigned char *a, size_t len);
|
||||
gpg_error_t app_help_get_keygrip_string (ksba_cert_t cert, char *hexkeygrip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue