Fix for old libfreefare Desfire timeout deadlocks

This commit is contained in:
Ondrej Mikle 2021-04-16 21:13:09 +02:00
parent 374ba4df5d
commit b778741ce1

View file

@ -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. 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 ## Building and dependencies
You need just to run `make`. Additional dependencies: You need just to run `make`. Additional dependencies: