|
|
@ -516,7 +516,8 @@ static int load_persistent_data(void)
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((crypt_ftr.major_version != 1) || (crypt_ftr.minor_version != 1)) {
|
|
|
|
if ((crypt_ftr.major_version < 1)
|
|
|
|
|
|
|
|
|| (crypt_ftr.major_version == 1 && crypt_ftr.minor_version < 1)) {
|
|
|
|
SLOGE("Crypt_ftr version doesn't support persistent data");
|
|
|
|
SLOGE("Crypt_ftr version doesn't support persistent data");
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -597,7 +598,8 @@ static int save_persistent_data(void)
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ((crypt_ftr.major_version != 1) || (crypt_ftr.minor_version != 1)) {
|
|
|
|
if ((crypt_ftr.major_version < 1)
|
|
|
|
|
|
|
|
|| (crypt_ftr.major_version == 1 && crypt_ftr.minor_version < 1)) {
|
|
|
|
SLOGE("Crypt_ftr version doesn't support persistent data");
|
|
|
|
SLOGE("Crypt_ftr version doesn't support persistent data");
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|