[pkg-opensc-commit] [opensc] 88/295: pkcs15-tool: remove overall card unlock
Eric Dorland
eric at moszumanska.debian.org
Sat Jun 24 21:11:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository opensc.
commit 30261ceaec6c812829f0a7b0e2422daddc79d2fb
Author: Viktor Tarasov <viktor.tarasov at gmail.com>
Date: Tue Oct 4 18:23:12 2016 +0200
pkcs15-tool: remove overall card unlock
In a complement to c6db68f -- card is not more locked when connected.
---
src/tools/pkcs15-tool.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/tools/pkcs15-tool.c b/src/tools/pkcs15-tool.c
index a5edc60..2d8e79f 100644
--- a/src/tools/pkcs15-tool.c
+++ b/src/tools/pkcs15-tool.c
@@ -2062,10 +2062,8 @@ int main(int argc, char * const argv[])
end:
if (p15card)
sc_pkcs15_unbind(p15card);
- if (card) {
- sc_unlock(card);
+ if (card)
sc_disconnect_card(card);
- }
if (ctx)
sc_release_context(ctx);
return err;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git
More information about the pkg-opensc-commit
mailing list