summaryrefslogtreecommitdiffstats
path: root/server/smartcard.h
blob: bb2f0b60d6e89ffec73cfe522075c8c2769dc156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __SMART_CARD_H__
#define __SMART_CARD_H__

#include "server/spice-experimental.h"

// Maximal length of APDU
#define APDUBufSize 270

/** connect to smartcard interface, used by smartcard channel
 * returns -1 if failed, 0 if successfull
 */
int smartcard_device_connect(SpiceCharDeviceInstance *char_device);
void smartcard_device_disconnect(SpiceCharDeviceInstance *char_device);

void smartcard_channel_init(void);

#endif // __SMART_CARD_H__