summaryrefslogtreecommitdiff
path: root/vcard_emul_winscard.c
blob: 7d95f2f19aca38c0f672a53cfea61b2371c842c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
 * WinSCard vcard emul
 *
 * Copyright (c) 2012 Red Hat.
 * Written by Marc-André Lureau <marcandre.lureau@redhat.com>.
 *
 * This code is licenced under the GNU LGPL, version 2 or later.
 */
#include <windows.h>

#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)
{
}