[libfreefare] push by yob...@gmail.com - Return EACCES when authentication to an ultralight tag fails on 2014-03-13 13:19 GMT

0 views
Skip to first unread message

libfr...@googlecode.com

unread,
Mar 13, 2014, 9:20:27 AM3/13/14
to nfc-tool...@googlegroups.com
Revision: 184c5dcbdf50
Author: Robert Clausecker <fuz...@gmail.com>
Date: Tue Feb 25 00:31:37 2014 UTC
Log: Return EACCES when authentication to an ultralight tag fails

http://code.google.com/p/libfreefare/source/detail?r=184c5dcbdf50

Modified:
/libfreefare/mifare_ultralight.c

=======================================
--- /libfreefare/mifare_ultralight.c Tue Nov 13 23:36:01 2012 UTC
+++ /libfreefare/mifare_ultralight.c Tue Feb 25 00:31:37 2014 UTC
@@ -304,6 +304,7 @@
rol (PCD_RndA_s, 8);

if (0 != memcmp (PCD_RndA_s, PICC_RndA_s, 8)) {
+ errno = EACCES;
return -1;
}
// XXX Should we store the state "authenticated" in the tag struct??
Reply all
Reply to author
Forward
0 new messages