mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
scd:p15: Extract extended usage flagsand act upon them.
* scd/app-p15.c: Add a couple of oid constants. (struct cdf_object_s): Replace fields image and imagelen by cert. (struct prkdf_object_s): Add extusage flags (send_keypairinfo): Use them. (cdf_object_from_certid): Factor parts out to ... (cdf_object_from_objid): new function. (read_ef_prkdf): Move info printing to ... (read_p15_info): here. Fill the extusage flags. (readcert_by_cdf): Cache the ksba cert object instead of the binary cert. * scd/app.c (select_additional_application): Fix a log_debug call. (scd_update_reader_status_file): Ditto. -- This allows us to return only KEYPAIRINFO lines for keys we can actually use.
This commit is contained in:
parent
4c9b509d24
commit
488eaedc9a
2 changed files with 239 additions and 82 deletions
|
@ -1035,7 +1035,8 @@ select_additional_application (ctrl_t ctrl, const char *name)
|
|||
if (!err)
|
||||
{
|
||||
ctrl->current_apptype = req_apptype;
|
||||
log_debug ("current_apptype is set to %s\n", name);
|
||||
if (DBG_APP)
|
||||
log_debug ("current_apptype is set to %s\n", name);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -2230,7 +2231,8 @@ scd_update_reader_status_file (void)
|
|||
|
||||
if (status == 0)
|
||||
{
|
||||
log_debug ("Removal of a card: %d\n", card->slot);
|
||||
if (DBG_APP)
|
||||
log_debug ("Removal of a card: %d\n", card->slot);
|
||||
pincache_put (NULL, card->slot, NULL, NULL, NULL, 0);
|
||||
apdu_close_reader (card->slot);
|
||||
deallocate_card (card);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue