Level 3: Throw out keybox with wrong system id *DO NOT MERGE*
am: 7e7ef2bb58
Change-Id: Iebd010ff1967ef6135cfa72862307de2c7c2f9cf
This commit is contained in:
@@ -245,7 +245,7 @@ struct FunctionPointers {
|
|||||||
// The Cache Flush function is very processor dependent, but is needed by the
|
// The Cache Flush function is very processor dependent, but is needed by the
|
||||||
// haystack code. The haystack code is delivered as a static prebuilt library.
|
// haystack code. The haystack code is delivered as a static prebuilt library.
|
||||||
// For that reason, we pass a function pointer for cache_flush into the
|
// For that reason, we pass a function pointer for cache_flush into the
|
||||||
// haystack. The function is combiled outside of the haystack and may use
|
// haystack. The function is compiled outside of the haystack and may use
|
||||||
// target (processor) specific compiler flags.
|
// target (processor) specific compiler flags.
|
||||||
void clear_cache_function(void *page, size_t len) {
|
void clear_cache_function(void *page, size_t len) {
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ struct LevelSession {
|
|||||||
level1_.Name = (L1_##Name##_t)dlsym(level1_library_, QUOTE(Function)); \
|
level1_.Name = (L1_##Name##_t)dlsym(level1_library_, QUOTE(Function)); \
|
||||||
if (!level1_.Name) { \
|
if (!level1_.Name) { \
|
||||||
LOGW("Could not load L1 %s. Falling Back to L3.", \
|
LOGW("Could not load L1 %s. Falling Back to L3.", \
|
||||||
QUOTE(OEMCrypto_##Name)); \
|
QUOTE(Function)); \
|
||||||
return false; \
|
return false; \
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,6 +350,7 @@ class Adapter {
|
|||||||
if (LoadLevel1()) {
|
if (LoadLevel1()) {
|
||||||
LOGD("OEMCrypto_Initialize Level 1 success. I will use level 1.");
|
LOGD("OEMCrypto_Initialize Level 1 success. I will use level 1.");
|
||||||
} else {
|
} else {
|
||||||
|
level1_ = FunctionPointers(); // revert to all null pointers.
|
||||||
dlclose(level1_library_);
|
dlclose(level1_library_);
|
||||||
level1_library_ = NULL;
|
level1_library_ = NULL;
|
||||||
level1_valid_ = false;
|
level1_valid_ = false;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user