Commit graph

524 commits

Author SHA1 Message Date
Romuald Conty
76a8c8e8b1 add an example draft mifare-classic-format, a tool which can be usefull to debug :) 2010-01-06 23:44:17 +00:00
Romuald Conty
7d1495940f add an accessor to UID contained in MifareClassicTag 2010-01-06 23:42:06 +00:00
Romuald Conty
fc3c23502c add C++ compatibility. 2010-01-06 23:40:30 +00:00
Romain Tartiere
4582bfbf11 add freefare.h forgotten in previous commit. 2010-01-03 19:53:58 +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
Romuald Conty
3c4d6ff095 Tag is no more active if authentication failed. 2009-12-26 03:37:20 +00:00
Romuald Conty
a5dd66f77d put MifareSectorNumber type in a new mifare_common.h header.
API changed: mifare_classic_format_sector() now takes a MifareSectorNumber in argument.
2009-12-23 15:26:57 +00:00
Romain Tartiere
4bf33cc707 Fix autotools on FreeBSD.
Endianness fun is not provided by the same header file on GNU/Linux (endian.h) and FreeBSD (sys/endian.h).  Add some magic for the autotools to detect the correct header file.  While here, add AC_C_INLINE: it's reported as missing by autoscan(1).
2009-12-22 20:48:13 +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
0ae63092bd Fix mad_get_aid(): sector 0x10 is reserved and cannot be used. 2009-12-21 13:31:42 +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
00ca4579c9 - Rename MifareSector to MifareSectorNumber;
- Fix includes (use '<>' instead of '""');
  - Add -I. to cc arguments.
2009-12-21 02:35:28 +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
f9c2b6e9e3 Mark functions parameters as `const' when applicable. 2009-12-19 22:55:50 +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
Romain Tartiere
1f40cc97c7 New API function: mifare_classic_format_sector(). 2009-12-19 02:01:04 +00:00
Romain Tartiere
ba8c9b5126 Install a libfreefare.pc pkg-config module. 2009-12-18 21:31:45 +00:00
Romain Tartiere
967f9822e9 Add pointers to the implementation sources. 2009-12-18 21:13:09 +00:00
Romain Tartiere
bb486e4318 Import libfreefare into trunk. 2009-12-18 20:32:25 +00:00