libaacs | branch: master | npzacs <[email protected]> | Mon Oct  7 09:43:43 2013 
+0300| [91bda6ce62b5111cc5ccaf526c06c3b3c6234356] | committer: npzacs

Dropped support for compile-time PATCHED_DRIVE flag.

If this is still needed, it should be implemented as run-time option 
(environment variable ?).

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=91bda6ce62b5111cc5ccaf526c06c3b3c6234356
---

 ChangeLog         |    1 +
 src/libaacs/mmc.c |   15 ++++-----------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2ba6e20..f6203d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+ - Dropped support for compile-time PATCHED_DRIVE flag.
  - Bus encryption support
 
 2013-03-04: Version 0.6.0
diff --git a/src/libaacs/mmc.c b/src/libaacs/mmc.c
index 2b76cea..9ae5165 100644
--- a/src/libaacs/mmc.c
+++ b/src/libaacs/mmc.c
@@ -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) {

_______________________________________________
libaacs-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to