Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pcsc #71

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open

Pcsc #71

Changes from 1 commit
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
14c605a
added necessary PCSC structures into the structure mifare_tag
simonibus Sep 10, 2013
70cecc1
pcsclite.h must be included to get it done
simonibus Sep 10, 2013
d7257c2
added freefare_get_tags_pcsc function and a freefare_tag_new_pcsc pro…
simonibus Sep 10, 2013
72f17d0
just some small indention
simonibus Sep 10, 2013
47728bf
saving the last pcsc error in the MifareTag Structure and extending t…
simonibus Sep 10, 2013
bdac6e1
freefare_tag_new wont work
Sep 10, 2013
d2ae6f6
pcscp init, exit , list_devices
aircrach Sep 10, 2013
5e0e2b5
fix init
aircrach Sep 10, 2013
7977657
deleted redundant includes
simonibus Sep 10, 2013
9a1940f
function mifare_desfire_disconnect ready for nfc & pcsc
simonibus Sep 10, 2013
ee82f3e
DESFIRE_TRANSCEIVE
aircrach Sep 10, 2013
d87038f
mifare_tag structure got the strReader attrib, to have all needed inf…
simonibus Sep 10, 2013
f4a3e5f
mifare_desfire_connect ready for nfc & pcsc
simonibus Sep 10, 2013
6e813f6
fix parameters get tags pcsc
aircrach Sep 10, 2013
26e33fe
just some spelling fix
simonibus Sep 10, 2013
c540595
hardcoded desfire...
Sep 10, 2013
621376c
some debugs
Sep 11, 2013
16a5f9c
added some debug output for freefare_tag_new_pcsc
simonibus Sep 11, 2013
5dddede
fixed it to compile again
Sep 11, 2013
75bc7a5
clearified some things ...
Sep 11, 2013
a9d4c7e
fixes list devices pcsc
aircrach Sep 11, 2013
ce557e1
added support for block orientented protocol T1
simonibus Sep 11, 2013
bfe39ba
some more adjustment in freefare.c
Sep 11, 2013
a18796d
SCardGetAttrib call has been fixed
simonibus Sep 11, 2013
3ebcc80
set the right parameter for SCardGetAttrib
simonibus Sep 11, 2013
0a5c5d1
test changes
aircrach Sep 11, 2013
623d596
test
aircrach Sep 11, 2013
13bc4e4
prototypes got changed in header
simonibus Sep 11, 2013
e43850d
get uid
aircrach Sep 11, 2013
b33e945
changed strncmp to memcmp so that null charakters are handlesd correct
Sep 11, 2013
ec85214
szReader in the MifareTag struct was not correctly filled with the st…
simonibus Sep 11, 2013
7b0c3b1
cleanup & style
Sep 11, 2013
1b51c02
changes protocol
aircrach Sep 11, 2013
0f288bc
changed handle pointer to simple handle ...
Sep 11, 2013
76c52f3
small fix
aircrach Sep 11, 2013
05a1b2c
working desfire pcsc
aircrach Sep 11, 2013
e95ba5c
ask about the return value of functions
simonibus Sep 11, 2013
af34ba8
better output on failure
simonibus Sep 11, 2013
dd2a332
getting more overview by modularisation: abstraced the filling- and f…
simonibus Sep 11, 2013
f96cd7b
better condition checking
simonibus Sep 11, 2013
7da6a27
added missing return NULL
simonibus Sep 11, 2013
16c2fc4
fixed macro FREE_SZREADER
simonibus Sep 11, 2013
217eacd
starting up with mifare_classic to be able to use pcsc protocoll
simonibus Sep 11, 2013
e786f02
no error output when no tag is found
Sep 12, 2013
4fbcaf5
small changes in FILL_SZREADER macro
Sep 12, 2013
4577786
mifare_ultralight support ... maybe
Sep 12, 2013
6e691de
now ultralight should work now ...
Sep 12, 2013
88cb465
changes to get_tag and tag_new, replaced pcsc parameters in user api
aircrach Sep 13, 2013
930cd60
indention
simonibus Sep 12, 2013
366926c
removed silly characters
simonibus Sep 12, 2013
c85a2a6
moved redundant code out of every if/else-branch
simonibus Sep 12, 2013
7a9dce8
the pcsc context wastn saved in our structure, so we couldnt reconnec…
simonibus Sep 12, 2013
3c8b81e
fixed mifare classic connect function
simonibus Sep 12, 2013
b05f913
some indention an stylish fixes
simonibus Sep 12, 2013
8c82503
sytle fixes & indention
simonibus Sep 12, 2013
901e1aa
Freeing the szReader was on the wrong place
simonibus Sep 12, 2013
ad9b239
cleaned up the macros ... one more time
Sep 12, 2013
4082122
reincluded atr-testing to see which cardtype we have ...
Sep 12, 2013
07251f9
added debug textes
Sep 12, 2013
b036dbc
added error handling
Sep 13, 2013
5678e76
fixed a pointer...
Sep 13, 2013
27bb393
adding crc-check
Sep 13, 2013
66d3109
added missing free
Sep 13, 2013
175a561
fixed crc-debug output
Sep 13, 2013
3fe9f34
mifare-ultralight-info-pcsc added
aircrach Sep 13, 2013
3563965
mifare-ultralight-info-pcsc added - now for real
aircrach Sep 13, 2013
aae64ca
fixed wrong file
aircrach Sep 13, 2013
2ebdfbd
fix tag_info
aircrach Sep 13, 2013
628929d
maybe fixed crc-fail with ultralight
Sep 13, 2013
a12246a
fix tag type
aircrach Sep 13, 2013
a3de884
fix ultralight info pcsc
aircrach Sep 13, 2013
d57b45a
ultralight info pcsc nodev fix
Sep 13, 2013
2c5f74d
fixed swapping of original and copyied data
Sep 13, 2013
982f0fe
now it should be really fixed
Sep 13, 2013
f58c74a
added correct handling of classic1k and classic4k
Sep 13, 2013
3d53b1f
added missing branch in tag-detection
Sep 13, 2013
47cc0ca
corrected wrong crc in classic 4k
Sep 13, 2013
bb6a7c1
beginning of a rework of the tags
Sep 13, 2013
e26b719
added the tags file
Sep 13, 2013
6cf674f
"beautified" the tag comparison
Sep 13, 2013
18c779b
fix no card found ultralight info pcsc
aircrach Sep 13, 2013
88e1f8c
added debug ..
Sep 13, 2013
0bf2ec2
bug fix ?
Sep 13, 2013
eeb2cdf
added wildcards for mifare-classic cards
Sep 13, 2013
1a5c202
added a mifare-desfire-info-pcsc program example
simonibus Sep 13, 2013
a1b87d5
adjusted Makefile for the examples folder
simonibus Sep 13, 2013
f4fd64f
wrote better loop condition
simonibus Sep 13, 2013
8e51b37
Check PCSC configuration using pkg-config
Sep 15, 2013
662b6e4
The PC/SC header file is winscard.h
Sep 15, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added missing branch in tag-detection
  • Loading branch information
Steff authored and doegox committed Sep 13, 2013
commit 3d53b1fd2fb808060798c634562debae67ed7896
3 changes: 3 additions & 0 deletions libfreefare/freefare.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ freefare_tag_new_pcsc (struct pcsc_context *context, const char *reader)
if (0 == memcmp (pbAttr_copy, current_tag, 20)){
tagtype = ULTRALIGHT;
printf("ULTRALIGHT\n");
} else {
printf("unknown tag\n");
return NULL;
}
}
else
Expand Down