[pkg-opensc-commit] [opensc] 52/295: piv: logout place holder
Eric Dorland
eric at moszumanska.debian.org
Sat Jun 24 21:11:15 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 9c7f67309f86af4a249f795e5ab977bd20fae182
Author: Doug Engert <deengert at gmail.com>
Date: Sun Jul 24 20:37:46 2016 +0200
piv: logout place holder
Until a full logout function can be implemented, return SC_ERROR_NOT_SUPPORTED
closes #832
---
src/libopensc/card-piv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libopensc/card-piv.c b/src/libopensc/card-piv.c
index b194fae..7808037 100644
--- a/src/libopensc/card-piv.c
+++ b/src/libopensc/card-piv.c
@@ -3056,7 +3056,7 @@ static int piv_init(sc_card_t *card)
}
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "PIV card-type=%d card_issues=0x%08x", card->type, priv->card_issues);
- priv->enumtag = piv_aids[r].enumtag;
+ priv->enumtag = piv_aids[0].enumtag;
/* PKCS#11 may try to generate session keys, and get confused
* if SC_ALGORITHM_ONBOARD_KEY_GEN is present
@@ -3292,7 +3292,7 @@ static int piv_pin_cmd(sc_card_t *card, struct sc_pin_cmd_data *data,
static int piv_logout(sc_card_t *card)
{
- int r = 0;
+ int r = SC_ERROR_NOT_SUPPORTED; /* TODO Some PIV cards may support a logout */
/* piv_private_data_t * priv = PIV_DATA(card); */
SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE);
--
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