- another portability fix

- renamed sc-emv.c to sc-card-emv.c


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@116 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jey 2001-12-29 12:44:11 +00:00
parent 13b1325aef
commit 5201a83b21
3 changed files with 13 additions and 8 deletions

View File

@ -3,11 +3,11 @@
lib_LTLIBRARIES = libopensc.la
libopensc_la_SOURCES = sc-asn1.c sc-base64.c sc-defaults.c \
sc-sec.c sc-log.c sc.c sc-card.c sc-iso7816.c \
sc-emv.c sc-pkcs15.c sc-pkcs15-cert.c \
sc-pkcs15-pin.c sc-pkcs15-prkey.c \
sc-pkcs15-defaults.c sc-pkcs15-sec.c \
sc-pkcs15.c sc-pkcs15-cert.c sc-pkcs15-pin.c \
sc-pkcs15-prkey.c sc-pkcs15-defaults.c \
sc-pkcs15-sec.c \
sc-card-setec.c sc-card-multiflex.c \
sc-card-default.c
sc-card-emv.c sc-card-default.c
libopensc_la_LDFLAGS = -version-info 0:4:0
libopensc_la_LIBADD = @LIBPCSCLITE@
libopensc_la_CFLAGS = $(AM_CFLAGS) -Werror

View File

@ -1,5 +1,5 @@
/*
* sc-emv.c: Functions specified by the EMV standard
* sc-card-emv.c: Functions specified by the EMV standard
*
* Copyright (C) 2001 Juha Yrjölä <juha.yrjola@iki.fi>
*

View File

@ -307,19 +307,24 @@ static int iso7816_get_challenge(struct sc_card *card, u8 *rnd, size_t len)
}
static struct sc_card_operations iso_ops = {
read_binary: NULL
NULL,
};
static const struct sc_card_driver iso_driver = {
NULL,
"ISO 7816-x reference driver",
&iso_ops
};
static int no_match(struct sc_card *card)
{
return 0;
}
const struct sc_card_driver * sc_get_iso7816_driver(void)
{
if (iso_ops.read_binary == NULL) {
if (iso_ops.match_card == NULL) {
memset(&iso_ops, 0, sizeof(iso_ops));
iso_ops.match_card = no_match;
iso_ops.read_binary = iso7816_read_binary;
iso_ops.read_record = iso7816_read_record;
iso_ops.select_file = iso7816_select_file;