diff options
Diffstat (limited to 'server/smartcard.h')
-rw-r--r-- | server/smartcard.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/server/smartcard.h b/server/smartcard.h new file mode 100644 index 00000000..790eb878 --- /dev/null +++ b/server/smartcard.h @@ -0,0 +1,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(); + +#endif // __SMART_CARD_H__ + |