apply a patch suggested by Valentijn Sessink. See Issue 56.

This commit is contained in:
Romuald Conty 2011-04-08 09:32:56 +00:00
parent d1c676b01d
commit 1c2ff2b263

View file

@ -788,6 +788,17 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d
exit (EXIT_FAILURE); exit (EXIT_FAILURE);
} }
// Finally we want to send arbitrary parity bits
if (!nfc_configure(r.pdi, NDO_HANDLE_PARITY, true)) {
nfc_perror (r.pdi, "nfc_configure parity restore M");
exit (EXIT_FAILURE);
}
if (!nfc_configure(r.pdi, NDO_HANDLE_CRC, true)) {
nfc_perror (r.pdi, "nfc_configure crc restore M");
exit (EXIT_FAILURE);
}
// Save the encrypted nonce // Save the encrypted nonce
NtEnc = bytes_to_num(Rx, 4); NtEnc = bytes_to_num(Rx, 4);