Philippe Teuwen
7933adc57e
mifare_desfire_connect(): select Desfire AID
2014-02-11 17:24:50 +01:00
Philippe Teuwen
2960f704f8
Let's redirect NFC phones to Desfire as they're ISO14443-4
2014-02-11 17:24:38 +01:00
Philippe Teuwen
dbb88cd184
mifare_cryto_postprocess_data: add safety checks
2014-01-27 18:24:55 +01:00
Philippe Teuwen
e797ee2a2e
Add freefare_selected_tag_is_present()
2014-01-27 16:32:23 +01:00
Maxim Chechel
9ee3687280
Support for Dual Interface cards like UICC/eSE SmartMX based emulation
2013-12-18 19:14:50 +04:00
Romuald Conty
530ccbc193
Update changelog for 0.4.0
2013-12-04 11:03:40 +01:00
Romuald Conty
cd481cb70e
Use bzip2 instead of gzip compression algorithm
2013-12-04 11:03:33 +01:00
Romuald Conty
c3d0942c3b
Updates invalid email address
2013-12-03 16:22:23 +01:00
Don Coleman
14219ab145
add -y flag to mifare-classic-write-ndef
...
write without confirmation
2013-07-14 22:55:56 +02:00
Philippe Teuwen
f86ad5a183
mifare-classic-read-ndef: skip NULL TLV & proprio TLV
2013-07-14 21:18:28 +02:00
Philippe Teuwen
ea496c441d
Merge remote-tracking branch 'dheidler/master'
...
* dheidler/master:
mifare-classic-format option: read keys from dump
2013-06-20 14:27:58 +02:00
Philippe Teuwen
f0c4db2f4b
Fix MIFARE_ULTRALIGHT_C_PAGE_COUNT_READ
...
Fixes issue #12
Reading page 0x2b of an ULC was refused
2013-06-20 00:00:55 +02:00
Jan Engelhardt
089b6006b1
libfreefare: resolve compiler warning on breakage of strict aliasing
...
gcc warns:
mifare_classic.c:353:45: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
There is another problem with this code: "data", being a 16-byte
array, may not be suitably aligned for the other types in the union.
This patch resolves this.
2013-06-05 19:37:32 +02:00
Dominik Heidler
cc36619f13
mifare-classic-format option: read keys from dump
2013-05-03 09:58:22 +02:00
Philippe Teuwen
00e999dd52
Ugly fix as workaround of FIXME mifare_desfire.c read_data()
2013-04-29 00:51:06 +02:00
Philippe Teuwen
29235a0295
Debian: fix libnfc dependency now that rc7 has a name
2013-04-05 16:18:58 +02:00
Philippe Teuwen
296ab78fad
Debian: allow compilation against libnfc RC releases
2013-03-31 00:02:01 +01:00
Philippe Teuwen
061b41ed2d
Align with libnfc API change: test nfc_init() result
2013-03-30 18:07:34 +01:00
Philippe Teuwen
86c194ef6c
Changelog from git2cl, to be beautified
2013-02-18 17:13:40 +01:00
Philippe Teuwen
2d3cff48e7
Add support for 7-byte UID MIFARE Classic cards
2013-01-29 23:26:32 +01:00
Philippe Teuwen
42e731b492
DF cutter tests: detect if DF is too small for tests
2013-01-29 22:47:50 +01:00
Philippe Teuwen
bfa8bc69fc
Document how to run cutter tests, all pass now
2013-01-29 22:05:27 +01:00
Philippe Teuwen
57f93fbeda
Fix buffer size in desfire_get_version, now cutter is happy on DF EV1
...
38 test(s), 8120 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 19 omission(s), 0 notification(s)
100% passed
2013-01-29 22:05:27 +01:00
Philippe Teuwen
601b75333f
DF EV1 Cutter tests must be done with at least a 4k card, still 2 tests failed
...
38 test(s), 8041 assertion(s), 2 failure(s), 0 error(s), 0 pending(s), 19 omission(s), 0 notification(s)
94.7368% passed
.errorlibnfc.chip.pn53xBuffer size is too short: 23o available(s), 24o needed
F
===============================================================================
Failure: test_mifare_desfire_ev1_aes2
Wrong return value
<-1 != res>
expected: <-1>
actual: <-1>
./test_mifare_desfire_ev1.c:75: test_mifare_desfire_ev1_aes2(): cut_assert_not_equal_int(-1, res)
===============================================================================
F
===============================================================================
Failure: test_mifare_desfire_ev1_iso
Wrong DF count
<count == 0>
expected: <1>
actual: <0>
./test_mifare_desfire_ev1_iso.c:48: test_mifare_desfire_ev1_iso(): cut_assert_equal_int(count, 0, cut_test_context_set_current_result_user_message( cut_test_context_current_
===============================================================================
2013-01-29 22:05:27 +01:00
Philippe Teuwen
fbb5434f24
Adjusting DESFire frame sizes, cutter still not entirely satisfied
...
Desfire (old) 4k:
write large ndef OK
read large ndef OK
cutter: OK
31 test(s), 2576 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 26 omission(s), 0 notification(s)
100% passed
Desfire EV1 2k:
write large ndef OK
read large ndef OK
cutter: FAIL
38 test(s), 5257 assertion(s), 6 failure(s), 0 error(s), 0 pending(s), 19 omission(s), 0 notification(s)
84.2105% passed
2013-01-29 22:05:27 +01:00
Romain Tartière
5fa9f2cbc3
Remove a few static.
...
Cutter can't test suche methods.
2013-01-28 15:55:22 +01:00
Romuald Conty
4f3aec28b3
Updates NEWS file
2013-01-20 17:53:38 +01:00
Romuald Conty
444a62567f
Updates unit tests to use libnfc 1.7.0
2013-01-20 17:53:33 +01:00
Philippe Teuwen
8885aaa94c
Debian: bump dev dep to libnfc-dev to 1.7.0
2013-01-16 08:34:56 +01:00
Philippe Teuwen
b922c8b2c9
Add debian/.gitignore
2013-01-16 08:31:53 +01:00
Philippe Teuwen
f53c41a84c
Add .gitignore
2013-01-14 10:40:29 +01:00
Philippe Teuwen
bddb688df6
Add mifare-ultralight-info to dpkg & CMakeList
2013-01-14 10:11:02 +01:00
Romuald Conty
3dd6edcb3a
updates library examples to use libnfc 1.7.0 API
2012-12-23 21:30:10 +00:00
Philippe Teuwen
9fda402cd3
add test default ULC key in mifare-ultralight-info
2012-11-13 23:36:07 +00:00
Philippe Teuwen
7d26778a2c
fix bug in mifare_ultralight_read()
2012-11-13 23:36:01 +00:00
Philippe Teuwen
f6fecaaa9b
fix typo
2012-11-13 23:35:53 +00:00
Philippe Teuwen
60d4fca47a
Tolerate older autotools
2012-06-28 23:26:14 +00:00
Philippe Teuwen
d1a6ac4a53
debian/rules don't mandate to run cutter tests when creating .deb
2012-06-01 22:19:59 +00:00
Philippe Teuwen
9302433278
debian/control: remove dependence on libnfc2 (libnfc3 dependence is automatically created)
2012-06-01 22:11:24 +00:00
Romuald Conty
dd1315321d
Update to current libnfc devel API.
...
libnfc changed its nfc_initiator_transceive_bytes(): it now takes a const size_t used as maximal allowed rx bytes.
libnfc now checks if rx buffer is large enough to get the full response, so libfreefare should take care about whole size of its buffers.
2012-06-01 21:26:01 +00:00
Romuald Conty
a8e0b6e1e7
Support Infineon Mifare Classic 1k. (Fixes Issue 88)
...
Thanks to Gernoth!
2012-06-01 00:38:38 +00:00
Ludovic Rousseau
73a3eb7268
Fix spelling mistakes in manpages
...
Closes Issue #90
2012-05-18 16:51:51 +00:00
Ludovic Rousseau
a6675eda70
Update write_data() prototype so that the data buffer is constant
2012-05-18 16:32:47 +00:00
Ludovic Rousseau
71a5295e7d
Fix compiler warnings
...
mifare_desfire.c:196: warning: no previous prototype for
'madame_soleil_get_read_communication_settings'
mifare_desfire.c:210: warning: no previous prototype for
'madame_soleil_get_write_communication_settings'
mifare_desfire.c:642: warning: no previous prototype for
'create_application'
2012-05-18 16:30:45 +00:00
Ludovic Rousseau
5a5e061e68
Fix compiler warning
...
mifare_desfire_error.c:35: warning: initialization discards qualifiers
from pointer target type
mifare_desfire_error.c:36: warning: initialization discards qualifiers
from pointer target type
etc...
2012-05-18 16:28:41 +00:00
Ludovic Rousseau
f60bb7e613
Fix compiler warning
...
mifare-desfire-access.c:102: warning: initialization discards qualifiers
from pointer target type
2012-05-18 16:27:23 +00:00
Ludovic Rousseau
4a15097d15
Update mifare_desfire_write_data() and mifare_desfire_write_data_ex()
...
prototypes so that the data buffer is constant
2012-05-18 16:26:37 +00:00
Ludovic Rousseau
4a8dc7a4c6
Fix compiler warning
...
mifare-classic-format.c:62: warning: no previous prototype for ‘display_progress’
2012-05-18 16:21:26 +00:00
Ludovic Rousseau
5dc7a20c1c
Fix compiler warnings
...
mifare-classic-write-ndef.c:67: warning: no previous prototype for ‘search_sector_key’
mifare-classic-write-ndef.c:105: warning: no previous prototype for ‘fix_mad_trailer_block’
2012-05-18 16:20:15 +00:00
Ludovic Rousseau
1a9fcabf89
Declare internal function usage() as static
2012-05-18 16:18:45 +00:00