Adam Laurie
b5180a6a70
Merge pull request #624 from FeitianSmartcardReader/master
...
Modify code to add compatibility of readers
2020-10-24 15:28:25 +01:00
Feitian Technologies
0cd314c514
Modify code to add compatibility of readers
...
Follow the NXP Contactless card IC rules to be compatible with Feitian new and old R502 reader.
2020-10-20 14:29:15 +08:00
Philippe Teuwen
c3f739dea3
Merge pull request #622 from timgates42/bugfix_typo_mechanism
...
docs: fix simple typo, mecanism -> mechanism
2020-10-11 16:33:51 +02:00
Tim Gates
126cf9c1be
docs: fix simple typo, mecanism -> mechanism
...
There is a small typo in contrib/win32/libnfc/buses/uart.c, libnfc/drivers/acr122_usb.c, libnfc/drivers/acr122s.c, libnfc/drivers/arygon.c, libnfc/drivers/pn532_uart.c, libnfc/drivers/pn53x_usb.c.
Should read `mechanism` rather than `mecanism`.
2020-10-11 07:43:16 +11:00
Philippe Teuwen
d9a04a54ff
document RC_FILE_TYPE
2020-07-11 15:12:57 +02:00
Philippe Teuwen
cc4311acab
Merge pull request #611 from gelotus/msvc
...
windows compiling with native tools and clang, macos catalina compiling, added travis ci build tests
2020-07-11 15:12:13 +02:00
Unknown
e37d24e691
Merge branch 'msvc2' into msvc
2020-07-08 13:38:46 +02:00
Unknown
1077228fbd
style
2020-07-08 13:26:45 +02:00
Unknown
5c09dc180a
forget to add linux clang cmake
2020-07-08 13:24:26 +02:00
Unknown
d5fcd08d41
remove unused packages
2020-07-08 13:14:13 +02:00
Unknown
f56bbabf6c
easy reading condition
2020-07-08 13:06:45 +02:00
Unknown
9cece8b55d
add cr
2020-07-08 13:06:03 +02:00
Unknown
7ad18a2120
some cleanings
2020-07-07 19:41:07 +02:00
WangYi
e21fab3685
Example and util compile fine.
2020-07-05 00:55:23 +02:00
WangYi
82f23c411d
Make it compile under MSVC2017.
2020-07-05 00:54:54 +02:00
Adam Laurie
66d3560608
Merge pull request #609 from gelotus/fix-4k
...
Fix 4k - [@gelotus]
(we can re-introduce support for other card types later as long as we adhere to the principal that we don't write unless requested to)
2020-07-04 18:20:34 +01:00
Philippe Teuwen
fc51c8662b
Merge pull request #610 from iceman1001/master
...
chg: make version printing obey verbose flag
2020-07-01 21:48:47 +02:00
iceman1001
db081ed12d
chg: make version printing obey verbose flag
2020-07-01 21:28:02 +02:00
Unknown
6fb61d3c1e
error handling
2020-06-30 17:19:24 +02:00
Unknown
f2677da74c
too many different clone tags, let the user to chose action
...
too many different clone tags, let the user to chose action
2020-06-30 16:18:47 +02:00
Unknown
0bf4cec661
remove direct write check
2020-06-30 14:52:07 +02:00
Adam Laurie
0de55961c4
Merge pull request #608 from gelotus/nfc-mfclassic
...
Improve support for gen2 and gen3 tags
thanks @gelotus
2020-06-28 14:20:32 +01:00
Unknown
c8fcaea8ab
no need to differentiate routines
2020-06-27 16:17:15 +02:00
Unknown
6921e57fb8
correct typo
2020-06-27 13:33:04 +02:00
Unknown
01bc5693d9
another hardcode value
2020-06-26 19:08:04 +02:00
Unknown
db957aabdf
adds write condition check in unlock_card()
2020-06-26 18:29:01 +02:00
Unknown
f7b9b0eafa
remove unused stuff for block 0 writing
2020-06-26 13:36:18 +02:00
Unknown
709ef8381f
reinit for retrieving new uid after block 0 write
2020-06-26 13:34:50 +02:00
Unknown
3c55b8746b
swap 0 block write and other blocks write
...
when writing to gen2 and possible on gen3, it writes first block 3 wich is the trailing sector before writing to block 0, so the last write to block 0 fails because authenticate to old keyset
2020-06-26 01:50:11 +02:00
Unknown
02f0f6b290
add verbose case
...
add verbose case
2020-06-26 01:28:57 +02:00
Unknown
7a5e654309
hardcoded values
2020-06-25 23:56:38 +02:00
Unknown
2b21d87e8e
add gen2 desc to help
...
add gen2 desc to help
2020-06-25 23:45:17 +02:00
Unknown
4e922e8194
sends lib log to /dev/null in posix and added option (v) to reactivate
...
There in an error handling and messaging inside
2020-06-25 23:32:03 +02:00
Unknown
3f4b7a037a
add rewrite support for gen2 tags with W command
...
add rewrite support for gen2 tags with W command
2020-06-25 23:10:06 +02:00
Unknown
dd96571f88
no need to loop, only one block
2020-06-25 19:49:04 +02:00
Unknown
5a87f1f3db
Splitting block 0 writing and other block writing, not needed anymore
2020-06-25 19:29:38 +02:00
Adam Laurie
7b6ff73c4b
only test DirectWrite write if we need to. only write block 0 if specifically requested to.
2020-06-25 17:45:20 +02:00
Adam Laurie
e560689f60
restore original block count logic and add debuggers for block0
2020-06-25 17:44:20 +02:00
Adam Laurie
a28a537610
partial fix of nfc-mfclassic which only writes first sector of each block and not sector 1,2,3 unles 'unlocked' write - debuggers still in!
2020-06-25 17:43:19 +02:00
Philippe Teuwen
4b7791f845
Merge pull request #605 from ffontaine/master
...
autotools: make example build optional
2020-06-24 16:18:29 +02:00
Philippe Teuwen
1f6f75af38
Merge pull request #606 from FeitianSmartcardReader/master
...
Add length check when work with Feitian OEM R502
2020-06-22 11:20:50 +02:00
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
Fabrice Fontaine
874d9605aa
autotools: make example build optional
...
This patch makes example build optional for autotools build system.
In order to keep the former behavior, example build is enabled by default.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
[Retrieved (and slightly updated to remove CMakeLists.txt) from:
https://git.buildroot.net/buildroot/tree/package/libnfc/0001-build-systems-make-example-build-optional.patch ]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-06-21 23:38:44 +02:00
Philippe Teuwen
53eccd4be4
Merge pull request #603 from FeitianSmartcardReader/master
...
Update pcsc.c
2020-05-27 19:15:22 +02: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
Philippe Teuwen
f02ff51449
Prepare 1.8.0 version
2020-05-22 12:20:17 +02:00
Philippe Teuwen
5c3c468a6a
Restore nfc_modulation_type order of v1.7.1
2020-05-22 12:20:17 +02: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
Ludovic Rousseau
fa78e8b883
Doxygen: unset DOT_FONTNAME
...
Fix warning:
warning: doxygen no longer ships with the FreeSans font.
You may want to clear or change DOT_FONTNAME.
Otherwise you run the risk that the wrong font is being used for dot generated graphs.
2020-05-22 10:02:37 +02:00