Commit graph

524 commits

Author SHA1 Message Date
Philippe Teuwen
0b14aa4eb2 allow input file for mifare-desfire-write-ndef & small fixes 2012-03-14 23:52:05 +00:00
Philippe Teuwen
acf5180177 add non-default key option to mifare-desfire-* examples 2012-03-14 23:05:10 +00:00
Philippe Teuwen
0a9eb8fbf2 minor changes 2012-03-14 09:54:22 +00:00
Philippe Teuwen
13bd8ff337 split mifare-desfire-write-ndef into format-ndef & write-ndef 2012-03-13 21:47:47 +00:00
Philippe Teuwen
38cd07a6c6 mifare-desfire-write-ndef: split PICC key & Tag app key 2012-03-13 20:47:25 +00:00
Romuald Conty
f690ce7411 prepare libfreefare 0.3.4 2012-03-01 17:51:15 +00:00
Romain Tartiere
3a0b70c8a9 Fix Mifare Ultralight C card detection routine (Fixes Issue 86). 2012-03-01 17:42:57 +00:00
Romuald Conty
1ac76e6d16 prepare libfreefare 0.3.3 2012-03-01 15:19:28 +00:00
Audrey Diacre
512a407213 fix some indentations. 2012-01-25 13:49:55 +00:00
Audrey Diacre
4f0227ddcb update to use libnfc's trunk 2012-01-25 09:58:16 +00:00
Romain Tartiere
21008cda5d Make these functions accept no argument (instead of any). 2012-01-15 11:09:25 +00:00
Romain Tartiere
3ab44974ca Fix inconsistencies in man pages (missing quotes, typos). 2012-01-15 11:07:32 +00:00
Romuald Conty
f1e5413ccc Prepare libfreefare 0.3.2 2011-10-17 16:51:29 +00:00
Romuald Conty
8dd46350de mifare-classic-write-ndef could use file as NDEF content
(BTW, stdin as input is not yet implemented, any contributions are welcome.)
2011-10-11 22:24:26 +00:00
Romuald Conty
060078012f mifare-classic-read-ndef now close kindly the output stream. 2011-10-11 22:20:38 +00:00
Romain Tartiere
68ef944cd0 Make freefare_tag_new() public (Fixes issue 64). 2011-09-29 14:10:07 +00:00
Romuald Conty
efd0d106bc svn:keywords fix on examples/mifare-classic-read-ndef.c . 2011-09-28 15:36:08 +00:00
Romain Tartiere
0a7ce855b8 Sync w/ libnfc-1.5.1. 2011-09-22 13:05:07 +00:00
Romuald Conty
76d325f47b Add a new example to extract NDEF Message from a "MIFARE Classic as NFC Forum enable tag". 2011-09-22 10:16:52 +00:00
Romuald Conty
bb113d5b28 Minor TLV manpage fix. 2011-09-22 10:15:18 +00:00
Romuald Conty
bc13a6a1b2 Improve devian package (Thanks to Thomas Hood) 2011-09-13 10:50:09 +00:00
Romuald Conty
2b8c29a70f add libssl-dev to Build-Depends (in debian/control). (Fixes Issue 73) 2011-09-12 22:56:25 +00:00
Romuald Conty
ba3f0bc624 add pkg-config to Build-Depends (in debian/control). (Fixes Issue 72) 2011-09-12 22:55:07 +00:00
Romuald Conty
fb87df3e85 autoreconf is needed by debian build process when using svn version. 2011-09-12 22:51:46 +00:00
Romain Tartiere
0339fb51f4 Enable WITH_DEBUG for Windows (Fixes issue 65)
PR:		Issue 65
Submitted by:	glenn.ergeerts
2011-06-27 18:34:07 +00:00
Romuald Conty
0be3b125e6 debian: update pam_nfc, mfoc and libfreefare packages to use dh7. 2011-05-20 16:00:11 +00:00
Romuald Conty
a70b350520 import debian files 2011-05-18 11:47:50 +00:00
Romain Tartiere
30d4d2967b Fix code coverage with cutter. 2011-05-11 17:29:22 +00:00
Romain Tartiere
9e45b01802 Move cmake files around.
Update issue 62
Looks like I missed the -p0 argument to patch.  Can you please update and test?
Thanks!
2011-04-25 10:38:25 +00:00
Romain Tartiere
0abe2c9d66 Indent after last commit. 2011-04-24 11:47:33 +00:00
Romain Tartiere
35b87d4acd Merge CRC location / verification in mifare_cryto_postprocess_data().
Fix issue 52.
2011-04-24 11:43:07 +00:00
Romain Tartiere
de64cce14c Add Microsoft Windows support.
Update issue 62
Status: Feedback
Gleen, I slightly modified your patches to better stick with the style of the
rest of the project,  Can you please confirm that it does not break?

PR:		Issue 62
Submitted by:	glenn.ergeerts
2011-04-24 10:21:03 +00:00
Romain Tartiere
0f32259ee2 Return error if something bad happen in mifare_cryto_preprocess_data() / mifare_cryto_postprocess_data().
Fixes issue 60.

PR:		Issue 60
Submitted by:	ervin.kaljola
2011-04-23 16:01:05 +00:00
Romain Tartiere
ec16eb5572 Fix mifare_desfire_create_value_file().
Fixes issue 59
Committed, thanks!

PR:		Issue 59
Submitted by:	ervin.kaljola
2011-04-23 15:31:45 +00:00
Romain Tartiere
52e1c90425 Enhance the mifare_cryto_postprocess_data() function.
Update issue 52
Both code snippets are now similar and it should be possible to merge them
together.
2011-04-23 15:17:11 +00:00
Romain Tartiere
1c7b7dcbe4 Read written data to check that everything is fine. 2011-04-23 15:13:45 +00:00
Romain Tartiere
573fc1b778 Implement mifare_ultralight_write() using macros.
Update issue 58
I can't reproduce this bug, but saw that the mifare_ultralight_write() was
implemented in an old-school way.  I updated the code so that you should have
better traces when compiling the library in debug mode and running:

romain@marvin ~/Projects/libfreefare % cutter -n test_mifare_ultralight_write test
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
===> 0000   a2 07 12 34 56 78                                |...4Vx          |
===> 0000   30 07                                            |0.              |
<=== 0000   12 34 56 78 00 00 00 00 00 00 00 00 00 00 00 00  |.4Vx............|
===> 0000   a2 07 aa 55 00 ff                                |...U..          |
===> 0000   30 07                                            |0.              |
<=== 0000   aa 55 00 ff 00 00 00 00 00 00 00 00 00 00 00 00  |.U..............|
===> 0000   a2 07 00 00 00 00                                |......          |
===> 0000   30 07                                            |0.              |
<=== 0000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
.

Finished in 0,548238 seconds (total: 0,069079 seconds)

1 test(s), 12 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 0 omission(s), 0 notification(s)
100% passed
2011-04-05 21:05:27 +00:00
Romain Tartiere
b6cbeb2e20 Fix invalid test. 2011-03-26 13:50:21 +00:00
Romain Tartiere
7f0a65439f Build unit-tests as part of all-am if DEBUG is enabled, otherwise at check-am before running the test suite. 2011-03-26 13:30:14 +00:00
Romain Tartiere
f27352180c Complete ISO 7816 compatibility for Mifare DESFire EV1
Fixes issue 37
2011-03-26 13:22:48 +00:00
Romain Tartiere
b41f93cd5b Start support of ISO files for Mifare DESFire EV1.
Fixes issue 57
New API functions:
  * mifare_desfire_create_application_iso()
  * mifare_desfire_create_application_3k3des_iso()
  * mifare_desfire_create_application_aes_iso()
  * mifare_desfire_get_df_names()

Plus unit test to check this.
2011-03-25 16:49:36 +00:00
Romain Tartiere
c7dc9f0ccc New API functions mifare_desfire_create_application_3k3des(), mifare_desfire_create_application_aes().
Update issue 37
Only ISO application creation as requested by Issue 57 is lacking now.
2011-03-25 13:00:24 +00:00
Romain Tartiere
4b41f8b78b Update for 0.3.1. 2011-02-23 15:12:47 +00:00
Romain Tartiere
db489b6cb7 R is const. 2011-02-23 15:08:47 +00:00
Romain Tartiere
ca1fc02d6e Do not systematically build the tests if cutter is installed.
Building them only when running the test-suite is probably enough.
2011-02-13 14:26:18 +00:00
Romain Tartiere
45ea1f5009 Shorter is better. 2011-02-13 14:20:46 +00:00
Romain Tartiere
22e9854995 Do not abort on crypto error.
Because in some circumstances the crypto is skipped regardless of the
communication settings by the Mifare DESFire (e.g. when reading a file which is
writable with any key), do not abort if the crypto fail, and make it possible
to the user to catch such an event to fix his code accordingly.

Only display crypto diagnostic if compiled with debug support.
2011-02-13 14:13:35 +00:00
Romain Tartiere
04fe89e78c prevent myself from shooting in my own foot. 2011-02-13 12:52:08 +00:00
Romain Tartiere
7c8c818a08 Fix mifare_classic_transfer() with some readers. 2011-02-13 12:50:41 +00:00
Romain Tartiere
d9ed7f2c24 Fix CRC localisation code.
New issue
Summary: Add regression tests for CRC location in encyphered data files.
The CRC position location code in mifare_cryto_postprocess_data() shall be
checked.

new issue
Summary: Rework mifare_cryto_postprocess_data() CRC localisations
The function has two different implementation of the same feature: locate a CRC
at the end of a decyphered stream and check it.  The crc32 will fail if the
last CRC byte is 0x80, and the crc16 code looks awful.  A refactoring would
make our life easier.
2011-01-01 15:27:36 +00:00