From b778741ce157f4233c8f78e067acd23c7ff50c4b Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Fri, 16 Apr 2021 21:13:09 +0200 Subject: [PATCH] Fix for old libfreefare Desfire timeout deadlocks --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 32936c6..d06551f 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,16 @@ and panic trigger) or a cheap electromagnetic lock. Test code is also provided to get payment signature (cryptogram) from Visa and Mastercard, but it's not used. +### Note on old libfreefare 0.4.x desfire timeouts/deadlocks + +Old libfreefare 0.4.x has infinite timeouts for desfire operations (and others). + +Fix can be made by replacing the timeout parameter in `nfc_initiator_transceive_bytes` calls in libfreefare sources. + +You need to rebuild the lib and reinstall it. + +Latest versions have finite timeout, which is also configurable. + ## Building and dependencies You need just to run `make`. Additional dependencies: