hongbin@ftsafe.com
435e2ffc81
Add length check to have compatible with R502
...
improve the code, to have compatible with OEM R502 firmware.
2020-06-22 14:33:15 +08:00
Feitian Technologies
b02f94d7da
Update pcsc.c
...
1. Fix bug for Mifare card, before do authentication, need to load PIN/password first
2. Fix bug when to get card ATS
2020-05-28 00:54:20 +08:00
Ludovic Rousseau
63cf0acb0b
pcsc: remove unused function pcsc_initiator_deselect_target
...
pcsc.c:763:12: warning: ‘pcsc_initiator_deselect_target’ defined but not used [-Wunused-function]
static int pcsc_initiator_deselect_target(struct nfc_device *pnd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-05-22 10:13:52 +02:00
Ludovic Rousseau
5294c0290f
Fix compiler warnings: no previous prototype
...
Local function should be declared static.
Fix:
pcsc.c:107:1: warning: no previous prototype for ‘pcsc_get_scardcontext’ [-Wmissing-prototypes]
pcsc_get_scardcontext(void)
^~~~~~~~~~~~~~~~~~~~~
pcsc.c:119:1: warning: no previous prototype for ‘pcsc_free_scardcontext’ [-Wmissing-prototypes]
pcsc_free_scardcontext(void)
^~~~~~~~~~~~~~~~~~~~~~
pcsc.c:135:5: warning: no previous prototype for ‘pcsc_transmit’ [-Wmissing-prototypes]
int pcsc_transmit(struct nfc_device *pnd, const uint8_t *tx, const size_t tx_len, uint8_t *rx, size_t *rx_len)
^~~~~~~~~~~~~
pcsc.c:160:5: warning: no previous prototype for ‘pcsc_get_status’ [-Wmissing-prototypes]
int pcsc_get_status(struct nfc_device *pnd, int *target_present, uint8_t *atr, size_t *atr_len)
^~~~~~~~~~~~~~~
pcsc.c:178:5: warning: no previous prototype for ‘pcsc_reconnect’ [-Wmissing-prototypes]
int pcsc_reconnect(struct nfc_device *pnd, DWORD share_mode, DWORD protocol, DWORD disposition)
^~~~~~~~~~~~~~
pcsc.c:194:9: warning: no previous prototype for ‘pcsc_get_icc_type’ [-Wmissing-prototypes]
uint8_t pcsc_get_icc_type(const struct nfc_device *pnd)
^~~~~~~~~~~~~~~~~
pcsc.c:203:6: warning: no previous prototype for ‘is_pcsc_reader_vendor’ [-Wmissing-prototypes]
bool is_pcsc_reader_vendor(const struct nfc_device *pnd, const char *target_vendor_name)
^~~~~~~~~~~~~~~~~~~~~
pcsc.c:219:5: warning: no previous prototype for ‘pcsc_get_atqa’ [-Wmissing-prototypes]
int pcsc_get_atqa(struct nfc_device *pnd, uint8_t *atqa, size_t atqa_len)
^~~~~~~~~~~~~
pcsc.c:245:5: warning: no previous prototype for ‘pcsc_get_ats’ [-Wmissing-prototypes]
int pcsc_get_ats(struct nfc_device *pnd, uint8_t *ats, size_t ats_len)
^~~~~~~~~~~~
[...]
2020-05-22 10:11:52 +02:00
Philippe Teuwen
4525cd1c32
make style
2020-05-21 15:06:17 +02:00
Philippe Teuwen
730f705c0d
pcsc.c: fix error and remove warnings
2020-05-21 14:42:45 +02:00
Feitian Technologies
beb8fdd759
Update pcsc.c
...
Remove call pcsc_get_vendor_name, get the vendor name from struct nfc_device
2020-05-14 11:08:23 +08:00
hongbin@ftsafe.com
8352c80679
Modify pcsc.c to have support for Mifare classic and Ultralight card
...
Modify pcsc.c and mifare.c files.
1. add code into pcsc.c to have support Mifare classic card.
2. The PCSC reader has SW value, add response data length for PCSC
reader
2020-05-13 12:15:28 +08:00
hongbin@ftsafe.com
cbc4e7b5c4
Update readme and add Feitian R502 and bR500 support into pcsc driver
...
1. Modify pcsc.c code, add R502 and bR500 support into PCSC driver
2. Update readme, tell user how to build with pcsc driver
3. Add FAQ for bR500 and R502 in readme
2020-04-09 11:29:11 +08:00
Frank Morgner
6f793da1c1
cleanup
2019-09-03 22:44:44 +02:00
Frank Morgner
75e5e23c81
Added driver for contactless PC/SC readers
...
- only initiator mode is supported
- properties are choosen as they are available via PC/SC, the rest of
the defaults are chosen to be compatible with Mifare DESFire
- This commit allows reading Mifare DESFire via PC/SC with libfreefare
2019-09-03 14:54:13 +02:00