Romain Tartiere
a9c026e8f2
Workaround a FreeBSD-specific bug in cutter.
2010-06-26 13:45:46 +00:00
Romain Tartiere
4ae3bf555d
Display format operation progress.
2010-06-26 11:57:25 +00:00
Romain Tartiere
ebeaf9ad35
Fix endian.h inclusion.
2010-06-26 11:56:57 +00:00
Romain Tartiere
9c9d270b7e
Fix typo in comment. I may need to buy a few more fingers to count on.
2010-06-25 00:30:32 +00:00
Romain Tartiere
335eef3e2f
Various TLV enhancements:
...
- New API function: tlv_append();
- Added unit tests for tlv_append();
- New internal functions: tlv_record_length(), tlv_next(), tlv_sequence_length();
- Rework tlv_decode() to use new internal functions.
2010-06-25 00:27:14 +00:00
Romain Tartiere
efe5bbad9e
Force disconnect to avoid failure when the same key is usable as key A and key B.
2010-06-24 00:19:05 +00:00
Romain Tartiere
a4793d7052
Fix mad_write().
2010-06-24 00:06:33 +00:00
Romain Tartiere
a235dbd0a9
Fix TLV terminator. 0xFE is part of TLV, not NDEF.
2010-06-23 23:21:47 +00:00
Romain Tartiere
4e3cccd071
Actually write some NDEF data in the mifare-classic-write-ndef example.
2010-06-23 02:05:28 +00:00
Romain Tartiere
b8049f110d
Add support for TLV streams.
...
- New API functions: tlv_encode(), tlv_decode();
- Documentation (man page);
- Unit tests.
2010-06-23 02:03:13 +00:00
Romain Tartiere
644a21ad9a
Add missing section line in man page.
2010-06-23 00:36:40 +00:00
Romain Tartiere
1839e32df8
Fix documentation: a Mad is freed using mad_free() not free(3).
...
Actually, mad_free() only calls free(3) but for the sake of consistency, document the proper interface.
2010-06-22 22:50:01 +00:00
Romain Tartiere
d88aa9b29b
Add a new example to write a MAD on MIFARE Classic cards.
...
It is a WIP example that should not stay long as an example and will be moved in the regression test-suite sooner or later.
2010-06-22 22:44:53 +00:00
Romain Tartiere
a7a561d330
Also fix the code after changeset r360.
...
Pointy hat to: me
2010-06-22 21:57:16 +00:00
Romain Tartiere
ef2c2e8168
Complete documentation for mad_new().
2010-06-22 21:53:07 +00:00
Romain Tartiere
92f96f0be2
Fix comment: c(321)=001 -> Key B can be written using Key B.
2010-06-22 21:52:38 +00:00
Romain Tartiere
a9f73f414d
Fix wrong trailer block number for writing MAD v2.
2010-06-22 17:11:11 +00:00
Romain Tartiere
2feb65ed04
Copy MIFARE Classic commands codes from the old libnfc source to the libfreefare's one.
2010-06-22 14:01:00 +00:00
Romain Tartiere
a0da16bf65
Update documentation.
...
Add a note about freefare_get_tags() invalidating previously found targets.
2010-04-26 11:09:04 +00:00
Romain Tartiere
1ea30f37bb
Document the new freefare_free_tag() function.
...
Fixes issue 22.
2010-04-26 10:53:36 +00:00
Romain Tartiere
a2263b7ea8
Remove the freefare_duplicate_tag() function.
...
Update issue 22
Remove the freefare_duplicate_tag() function.
2010-04-26 10:34:27 +00:00
Romain Tartiere
1f8589f2ae
Don't use deprecated cutter API.
2010-04-26 09:11:28 +00:00
Romuald Conty
99b261d132
add freefare_free_tag() to free only one tag and add freefare_duplicate_tag() in order to copy a tag struct.
2010-04-20 15:17:17 +00:00
Romain Tartiere
2cf035768d
Add a few hints about where to do what.
2010-04-13 14:00:32 +00:00
Romain Tartiere
bca49635f3
Add HACKING file to the autotooled tarball. Change version to 0.1.0.
2010-04-08 13:02:54 +00:00
Romain Tartiere
72ebd3af5a
Add HACKING file.
2010-04-08 12:55:13 +00:00
Romain Tartiere
d6aaeec866
Fill-in the README file.
2010-04-08 12:23:58 +00:00
Romain Tartiere
c9df81d96c
Use cut_omit() in tests setup() fixtures (requires cutter>=1.1.2).
2010-04-08 12:10:42 +00:00
Romain Tartiere
18f84ceb7a
Detect cutter version. We will depend on 1.1.2 soon actually.
2010-04-08 12:01:14 +00:00
Romain Tartiere
0fb4e7e14c
Add infrastructure for generating the ChangeLog.
2010-04-07 15:36:24 +00:00
Romuald Conty
90fce89aee
next try to build under OpenBSD.
2010-04-07 14:19:08 +00:00
Romuald Conty
e68904d48a
attempt to build under OpenBSD.
2010-04-07 14:06:04 +00:00
Romuald Conty
5dc0575a8b
check functions letoh32 and htole32.
2010-04-07 10:23:20 +00:00
Romuald Conty
2566fb645c
needs libnfc >= 1.3.4 so configure will now detect it.
2010-04-07 10:22:23 +00:00
Romain Tartiere
e5fbfbe6b7
Replace UTF-8 what-seems-to-be-an "em dash" with a basic ASCII dash: ANSI C says source code should be written in ASCII.
2010-04-01 12:04:53 +00:00
Romain Tartiere
aacddc7aae
Add missing htole32() call in mifare_classic_init_value(). Fix Mifare Classic support on big-endian machines.
2010-03-31 22:46:13 +00:00
Romain Tartiere
73c50a544a
Remove deprecated API mifare_ultralight_get_uid(), mifare_classic_get_uid().
2010-03-30 16:24:37 +00:00
Romain Tartiere
574b068b3f
New API function freefare_get_tag_uid().
...
- Deprecates mifare_classic_get_uid() and mifare_ultralight_get_uid().
2010-03-30 16:18:58 +00:00
Romain Tartiere
85e7174a02
Fix weird UIDs for Mifare UltraLight (requires libnfc at r328)
2010-03-30 16:08:07 +00:00
Romain Tartiere
017029fbbe
Do not require a Mifare UltraLight TAG to be connected to get it's UID.
...
Submitted by: rosek86@gmail.com
2010-03-30 13:56:49 +00:00
Romain Tartiere
26aef03a48
Add man pages.
2010-03-30 12:54:49 +00:00
Romain Tartiere
3b737a11e8
Add access bit macros to ease-up writing code using the library.
2010-03-19 09:00:06 +00:00
Romain Tartiere
feb240ee73
Fix MAD CRC algorithm.
...
The CRC algorithm is not a standard CRC algorithm so rename it to nxp_crc() and adjust all related code.
2010-03-18 21:03:07 +00:00
Romain Tartiere
42692ccf54
Style.
2010-03-02 19:01:12 +00:00
Romain Tartiere
0f72871eb3
Instead of copying n fields, setup a pointer to the relevant supported_tag information in mifare_tag structures.
2010-03-01 14:19:48 +00:00
Romain Tartiere
0d4744001a
Add support for friendly tag names.
2010-03-01 14:04:47 +00:00
Romain Tartiere
62ddf57c53
Rework byteswap.h inclusion.
...
This header is not available on e.g. FreeBSD so detect it's presence in configure.ac and only include it if appropriate. Then, if byte order manipulation macros are not defined (old glibc like the one provided by Debian GNU/Linux) define them.
2010-02-25 18:02:54 +00:00
Romuald Conty
8b2de449c7
define le32toh and htole32, this allow to compile against libc that doesn't provide these functions (like Debian Lenny)
2010-02-24 21:52:45 +00:00
Romain Tartiere
8a62a843ac
Fix the test_mifare_classic_format unit test.
2010-02-23 14:22:23 +00:00
Romain Tartiere
ce006c3cc9
Change a secret ninja guru one-line expression into a function and document what it is supposed to do and how it does it.
2010-02-23 12:05:14 +00:00