From 08eaf8ca4b4aafcdfe89f0cb5643a4b4c01606c7 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Wed, 7 Dec 2011 21:16:40 +0000 Subject: [PATCH] adapted to openpace git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@641 96b47cad-a561-4643-ad3b-153ac7d7599c --- npa/src/npa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npa/src/npa.c b/npa/src/npa.c index 9becebc..d677bdd 100644 --- a/npa/src/npa.c +++ b/npa/src/npa.c @@ -1627,7 +1627,7 @@ npa_sm_pre_transmit(sc_card_t *card, const struct sm_ctx *ctx, goto err; } - switch (CVC_get_terminal_type(cvc_cert->body->chat)) { + switch (CVC_get_role(cvc_cert->body->chat)) { case CVC_CVCA: sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "Processing CVCA certificate"); break;