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??