/* * WinSCard vcard emul * * Copyright (c) 2012 Red Hat. * Written by Marc-André Lureau . * * This code is licenced under the GNU LGPL, version 2 or later. */ #include #include "vcard.h" #include "card_7816t.h" #include "vcard_emul.h" #include "vreader.h" #include "vevent.h" /* return the number of login attempts still possible on the card. if unknown, * return -1 */ int vcard_emul_get_login_count(VCard *card) { return -1; } vcard_7816_status_t vcard_emul_login(VCard *card, unsigned char *pin, int pin_len) { /* map the error from port get error */ return VCARD7816_STATUS_ERROR_CONDITION_NOT_SATISFIED; } void vcard_emul_get_atr(VCard *card, unsigned char *atr, int *atr_len) { } void vcard_emul_reset(VCard *card, VCardPower power) { } VCardEmulError vcard_emul_init(const VCardEmulOptions *options) { } VCardEmulError vcard_emul_force_card_insert(VReader *vreader) { return VCARD_EMUL_FAIL; } VCardEmulError vcard_emul_force_card_remove(VReader *vreader) { return VCARD_EMUL_FAIL; } VCardEmulOptions * vcard_emul_options(const char *args) { return NULL; } void vcard_emul_usage(void) { }