Refresh Current Key in Level 3
Merge from Widevine repo of http://go/wvgerrit/26780 and http://go/wvgerrit/26740 Previously, in oemcrypto level 3, a session's current key's duration was not updated until the next call to SelectKey. This caused problems with license that only used one key. This CL fixes that. arm64/libwvlevel3.a Level3 Library 7283 May 2 2017 13:16:21 arm/libwvlevel3.a Level3 Library 4445 May 2 2017 11:49:34 x86_64/libwvlevel3.a Level3 Library 7284 May 2 2017 12:09:21 x86/libwvlevel3.a Level3 Library 4464 May 2 2017 11:53:46 Test: unit tests run on emulator. b/37481239 b/37523523 Change-Id: Ife90a3358b6620c8fb81324ec2331d3775a38191
This commit is contained in:
@@ -279,6 +279,12 @@ OEMCryptoResult Level3_UpdateUsageTable() {
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
OEMCryptoResult Level3_DeactivateUsageEntry(OEMCrypto_SESSION session,
|
||||
const uint8_t *pst,
|
||||
size_t pst_length) {
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
OEMCryptoResult Level3_ReportUsage(OEMCrypto_SESSION session,
|
||||
const uint8_t *pst,
|
||||
size_t pst_length,
|
||||
@@ -379,19 +385,5 @@ OEMCryptoResult Level3_CreateOldUsageEntry(uint64_t time_since_license_received,
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
uint32_t Level3_SupportedCertificates() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
OEMCryptoResult Level3_GetOEMPublicCertificate(OEMCrypto_SESSION session,
|
||||
uint8_t *public_cert,
|
||||
size_t *public_cert_length) {
|
||||
return OEMCrypto_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
OEMCrypto_ProvisioningMethod Level3_GetProvisioningMethod() {
|
||||
return OEMCrypto_ProvisioningError;
|
||||
}
|
||||
|
||||
|
||||
} // namespace wvoec3
|
||||
|
||||
Reference in New Issue
Block a user