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