Commit 91bda6ce authored by npzacs's avatar npzacs
Browse files

Dropped support for compile-time PATCHED_DRIVE flag.

If this is still needed, it should be implemented as run-time option (environment variable ?).
parent 583df16f
- Dropped support for compile-time PATCHED_DRIVE flag.
- Bus encryption support
2013-03-04: Version 0.6.0
......
......@@ -89,11 +89,6 @@
#include <winsock.h>
#endif
/* define in CFLAGS to skip drive certificate checks */
#ifndef PATCHED_DRIVE
#define PATCHED_DRIVE 0
#endif
#ifndef DEBUG_KEYS
#define DEBUG_KEYS 0
#endif
......@@ -1123,12 +1118,10 @@ int mmc_read_vid(MMC *mmc, const uint8_t *host_priv_key, const uint8_t *host_cer
}
DEBUG(DBG_MMC, "Got AGID from drive: %d\n", agid);
if (!PATCHED_DRIVE) do {
error_code = _mmc_aacs_auth(mmc, host_priv_key, host_cert, bus_key);
if (error_code) {
return error_code;
}
} while (0);
error_code = _mmc_aacs_auth(mmc, host_priv_key, host_cert, bus_key);
if (error_code) {
return error_code;
}
if (_mmc_read_vid(mmc, agid, vid, mac)) {
if (DEBUG_KEYS) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment