Implement serialization version checking
Merge from Widevine repo of http://go/wvgerrit/125263 and http://go/wvgerrit/135749 Define a |major.minor| version in the serialization layer and check for compatibility between REE and TEE before accepting connections. bug: 158857733 test: opk_all_tests Change-Id: Iad44a1f50a27c6bca4959c6d41c9b361712dbde8
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
7cbf3ebf6b
commit
b082f3fb0b
@@ -1213,6 +1213,13 @@ void PrintTo(const enum OEMCryptoResult& value, ::std::ostream* os) {
|
||||
case ODK_STALE_RENEWAL:
|
||||
*os << "STALE_RENEWAL";
|
||||
break;
|
||||
// OPK Values.
|
||||
case OPK_ERROR_INCOMPATIBLE_VERSION:
|
||||
*os << "INCOMPATIBLE_VERSION";
|
||||
break;
|
||||
case OPK_ERROR_REMOTE_CALL:
|
||||
*os << "REMOTE_CALL";
|
||||
break;
|
||||
}
|
||||
}
|
||||
namespace okp {
|
||||
|
||||
Reference in New Issue
Block a user