Commit graph

73 commits

Author SHA1 Message Date
Romain Tartiere
6d5224472c Fix MIFARE Classic unit tests default key.
According to the NXP documentation, default keys are 0xffffffffffff, not 0xa0a1a2a3a4a5 nor 0xd3f7d3f7d3f7.
2010-02-18 18:12:36 +00:00
Romain Tartiere
acb00368c6 Mark test_mifare_classic_get_trailer_permission() as pending.
This test requires a valid MAD to be present on the MIFARE card which is not a requirement for testing MIFARE Classic tags but MAD.
2010-02-18 17:14:37 +00:00
Romain Tartiere
2f24959116 Fix default permissions. 2010-02-18 17:07:36 +00:00
Romain Tartiere
8903968ea3 Honor 'ISO C99 requires rest arguments to be used'. 2010-02-11 11:29:57 +00:00
Romain Tartiere
10b8b92eb9 Fix a brunch of warnings. 2010-01-22 16:06:26 +00:00
Romain Tartiere
ef081454c7 Add support for MIFARE UltraLight Tags.
Many thanks to Johann Dantant from SpringCard for giving me UltraLight cards.

While here, fix a few other problems in the autostuff.
2010-01-19 23:14:25 +00:00
Romain Tartiere
0d1000e859 Fix regression tests build on FreeBSD.
While here, enhance error message when no MIFARE Classic tag can be found on the NFC device when running test_mifare_classic.la tests.
2010-01-12 15:38:56 +00:00
Romuald Conty
576801d5ff Fix build when cutter is not available. (make distcheck ok) 2010-01-11 20:25:28 +00:00
Romain Tartiere
c1bcb966ea Rework unit tests using cutter. 2010-01-11 20:14:30 +00:00
Romain Tartiere
517eef97cf The mifare_classic_format_sector prototype was changed on changeset 88. Update unit test accordingly. 2010-01-09 01:36:24 +00:00
Romain Tartiere
7a68e0f6ce Fix MadAid field orders (transfer bytes order is big endian). 2010-01-08 22:44:33 +00:00
Romain Tartiere
32e740ea6d Split out autojunk and actual code files. 2010-01-08 11:46:23 +00:00
Romain Tartiere
8a9d90210a Add MAD CRC support. 2010-01-08 11:24:30 +00:00
Romain Tartiere
073b67be48 merge all includes into a single freefare.h header.
libmad already has a mad.h file libfreefare would conflict with.
2009-12-26 18:16:22 +00:00
Romain Tartiere
58d83ae20a Enforce unit tests name consistency. 2009-12-21 13:58:53 +00:00
Romain Tartiere
3cab1523eb Introduce MAD application management functions. 2009-12-21 13:54:27 +00:00
Romain Tartiere
c7b8574e23 Make MAD Application Identifiers (AID) structure public as MadAid.
- Changed mad_get_aid() and mad_set_aid() ABI;
  - Update unit test;
2009-12-21 03:02:15 +00:00
Romain Tartiere
89dd817a63 Rename mifare_application_directory.[ch] to mad.[ch]. 2009-12-21 00:40:07 +00:00
Romain Tartiere
9478706550 Add MIFARE Application Directory (MAD) version 1 & 2 support (modulo CRC). 2009-12-21 00:02:40 +00:00
Romain Tartiere
a317799f01 Don't crash when no MIFARE target is present when running the regression tests suite. 2009-12-20 23:42:58 +00:00
Romain Tartiere
253d49eef8 Add forgotten regression test for mifare_classic_trailer_block(). 2009-12-19 22:59:38 +00:00
Romain Tartiere
7ed4561f74 New API function: mifare_classic_trailer_block(). 2009-12-19 06:10:44 +00:00
Romain Tartiere
b97012ac05 Add regression test suite. 2009-12-19 02:06:21 +00:00