Commit graph

565 commits

Author SHA1 Message Date
Romain Tartière
45ff2ddf19 Merge pull request #61 from manu0401/crypto_error
Do not fail crypto error without reporting
2017-04-27 18:33:33 +02:00
Emmanuel Dreyfus
494233d33b Do not fail crypto error without reporting
Make sure last_pcd_error is set when failing on crypto
errors.

While there:
- make sure warn()/warnx() are inside WITH_DEBUG,
- set last_pcd_error and res before calling abort()
- #include <stdlib.h> for abort()
2017-04-27 16:55:52 +02:00
Romain Tartière
5e5a0828af Merge pull request #58 from swalkner/master
Fix build with CMake
2017-04-24 09:39:09 +02:00
Stefan Walkner
565ee18b8e Fix build with CMake
- Fix library finding ('nfc' instead of 'libnfc');
- Generate config.h from template on non-win32 platforms;
- While here, include protection for config.h in several files.
2017-04-24 09:35:08 +02:00
Romain Tartière
3975019b3c Fix cast from pointer to integer of different size 2017-04-19 13:15:19 +02:00
Romain Tartière
b131f74ea6 Merge pull request #56 from bettse/macos_endianess_fixes
Macos endianess fixes
2017-04-04 10:08:51 +02:00
Eric Betts
358df7759a macOS endian support 2017-04-03 16:43:23 -07:00
Eric Betts
1f3ed91214 Add macOS endian support to felicia read ndef example 2017-04-03 16:43:23 -07:00
Romuald Conty
295104a893 Merge pull request #51 from ChristophGr/master
Fix build on Windows
2016-12-15 19:54:21 +01:00
Christoph Gritschenberger
6e413c9782 fix build on windows 2016-12-15 18:04:05 +01:00
Philippe Teuwen
d7c1aa6f72 Merge pull request #50 from pi3rrot/master
Add support for Mifare Mini 0.3k
2016-11-29 14:41:54 +01:00
pierre
644c9bd214 Add function declaration + man entry 2016-11-22 23:30:38 +01:00
Pi3rrot
df3165284d Change README 2016-11-22 21:28:44 +01:00
Pi3rrot
b819315caa Add support for Mifare Mini 0.3k 2016-11-22 21:27:30 +01:00
Philippe Teuwen
48c9383ce1 Merge pull request #17 from nfc-tools/tag-detection
Get some flexibility in the tag type detection
2016-01-19 23:08:43 +01:00
Romain Tartière
0ef6a74963 Drop deprecated struct supported_tag. 2016-01-19 15:45:37 +01:00
Romain Tartière
305eb9d73c Make tags allocation API public. 2016-01-19 15:45:37 +01:00
Romain Tartière
99fe8c1682 Deduplicate tag type tracking.
It's available through tag->type.
2016-01-19 15:45:37 +01:00
Romain Tartière
ee628f7ec5 Rework tag allocation.
Split Mifare Classic 1 and 4K tag allocation.
Rely on new tasting functions.
2016-01-19 15:45:37 +01:00
Romain Tartière
0279361873 Introduce tasting functions.
References #17.
2016-01-19 15:45:37 +01:00
Romain Tartière
36d44bdc90 Merge pull request #48 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-01-19 12:23:01 +01:00
The Gitter Badger
beda0c3e85 Add Gitter badge 2016-01-19 11:03:09 +00:00
Romain Tartière
e17a54c18e Check tag is a FeliCa before dumping it. 2016-01-18 17:13:22 +01:00
Romain Tartière
9db57c4efc Push my TODO notes 2016-01-18 10:31:22 +01:00
Massimiliano Zilli
636cd9c761 Fix memoy leak. 2015-09-08 17:04:14 +02:00
Romain Tartière
b6792a0a08 Fix dumping send bytes.
Unbreak build with --enable-debug.
Fixes #43.
2015-08-13 09:50:20 +02:00
Romain Tartière
34ee5bd28b Fix build. 2015-06-01 13:16:43 +02:00
Romain Tartière
343959c5dc Stop leaking UID 2015-06-01 13:16:11 +02:00
Romain Tartière
1e43abd9d4 Leave enougth room for the final \0. 2015-06-01 13:15:42 +02:00
Romain Tartière
2c47f42538 Actually accept -o. 2015-05-13 19:52:33 +02:00
Romain Tartière
ac50476c99 No need to connect/disconnect FeliCa targets. 2015-05-13 19:52:08 +02:00
Romain Tartière
6049acaf5a Introduce experimental FeliCa Lite API. 2015-05-13 02:06:55 +02:00
Romain Tartière
4016405214 Add updating instructions. 2015-05-13 02:01:23 +02:00
Romain Tartière
1ce3db3ca6 Improve naming consistency.
Ensure all MIFARE related names and structures start with "mifare_" or
"MIFARE_".
2015-05-12 13:52:18 +02:00
Romain Tartière
faac4ae5d8 Fix white spaces inconsistencies. 2015-05-12 13:19:00 +02:00
Romain Tartière
48e4f979a9 Add modulation_type to the supported_tag structure.
This will allow supporting tags using other modulations.
2015-05-12 13:11:56 +02:00
Romain Tartière
6984e162e6 Fix " \t" sequences. 2015-05-12 12:25:44 +02:00
Romain Tartière
07695f4c18 Remove subversion artifacts.
We do not have $Id$ to expand anymore.
2015-05-12 12:22:39 +02:00
Romain Tartière
c388ba6b30 Another step in card type agnostism direction. 2015-05-11 22:55:32 +02:00
Romain Tartière
89e5344b91 Sort and sync lists. 2015-05-11 18:57:56 +02:00
Romain Tartière
27c7cd9217 Sort and fix names. 2015-05-11 18:55:24 +02:00
Romain Tartière
42b21ff42f Rename MifareTag to FreefareTag.
Because we are libfreefare and not libmifare, the generic tag type
should not be so specific.
2015-05-11 18:55:20 +02:00
Romain Tartière
d946230aec Fix compiler warning. 2015-05-11 18:39:32 +02:00
Romain Tartière
b710ba5abd Fix memory leak. 2015-04-20 14:43:15 +02:00
Romain Tartière
4acd3ac72b Remove now useless extra buffer size. 2015-04-20 14:41:31 +02:00
Romain Tartière
a0ba196b49 Fix buffer overrun when reading record files.
When reading from a record file, length is set to the number of records to
read, and needs to be multiplied by the record size in order to allocate
enougth memory for reading the response.
2015-04-15 17:14:02 +02:00
Romain Tartière
f6c7f7692b Check malloc(3) return value. 2015-04-15 17:11:14 +02:00
Romain Tartière
65894ca3b4 Unbreak automake.
Now that README is named README.md for Github integration, automake will fail
if not told we use a foreign way of naming files.
2015-04-13 15:10:35 +02:00
Romain Tartière
515fc66050 Update and rename README to README.md 2015-04-13 14:34:13 +02:00
Romain Tartière
ffde4d4d92 Fix mifare_desfire_get_[iso_]file_ids() prototype.
The "files" parameter is not an array of pointer to uint8_t (uint8_t
*files[]), but rather an pointer to an array of uint8_t (uint8_t
(*files)[]).  Since this syntax confuses the compiler (the program
attempt to assign a value to what "files" is pointing to, which is
supposed to be an array, which is not assignable), declare "files" as a
pointer to a pointer to uint8_t (uint8_t **files) which makes everybody
happy.

Fixes issue 26.
2014-04-16 02:35:40 +02:00