Skip to content

Commit

Permalink
Fix smartcard certificate removal and update
Browse files Browse the repository at this point in the history
This patch fixes bug found in opensc 0.14.0-2 (Debian 8) that blocks
certificate update and removal on Athena ASEPCOS smartcard with error

    Failed to update certificate: Security status not satisfied

OpenSC tries to get the parent's 'DELETE' access before cert removal
and leaves path variable pointing to dir not file to be removed.

Author-Change-Id: IB#1047758
  • Loading branch information
pboguslawski committed Dec 15, 2015
1 parent 5129c5a commit de42dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkcs15init/pkcs15-lib.c
Expand Up @@ -599,6 +599,7 @@ sc_pkcs15init_delete_by_path(struct sc_profile *profile, struct sc_pkcs15_card *
LOG_TEST_RET(ctx, rv, "'DELETE' authentication failed");

/* Reselect file to delete: current path could be changed by 'verify PIN' procedure */
path = *file_path;
rv = sc_select_file(p15card->card, &path, &file);
LOG_TEST_RET(ctx, rv, "cannot select file to delete");

Expand Down

0 comments on commit de42dea

Please sign in to comment.