- sm will yield error when the class byte indicates a sm apdu and pace will
simply transmit the apdu without encrypting/authenticating it. - fixed building process when compiling without pace git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@81 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
11
ccid/ccid.c
11
ccid/ccid.c
@@ -27,7 +27,9 @@
|
||||
#include <opensc/log.h>
|
||||
|
||||
#include "ccid.h"
|
||||
#ifndef NO_PACE
|
||||
#include "pace.h"
|
||||
#endif
|
||||
|
||||
static sc_context_t *ctx = NULL;
|
||||
static sc_card_t *card_in_slot[SC_MAX_SLOTS];
|
||||
@@ -1305,6 +1307,14 @@ int ccid_state_changed(RDR_to_PC_NotifySlotChange_t **slotchange, int timeout)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NO_PACE
|
||||
int ccid_testpace(u8 pin_id, const char *pin, size_t pinlen)
|
||||
{
|
||||
sc_error(ctx, "ccid not compiled with support for PACE.");
|
||||
|
||||
return SC_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
#else
|
||||
int ccid_testpace(u8 pin_id, const char *pin, size_t pinlen)
|
||||
{
|
||||
int i;
|
||||
@@ -1321,6 +1331,7 @@ int ccid_testpace(u8 pin_id, const char *pin, size_t pinlen)
|
||||
|
||||
return SC_ERROR_SLOT_NOT_FOUND;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int ccid_list_readers(sc_context_t *ctx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user