Remove Unused OEMCrypto Wrapper Methods
(This is a merge of https://widevine-internal-review.googlesource.com/#/c/10141/ from the Widevine CDM repo.) Over the course of revising the CAST support, the need for the MediaDrm to call open and close session was removed. However, the methods to do that were not. This removes the unused code. Change-Id: I577f5314b6b20f36c308ac6753f1084ff3c707d9
This commit is contained in:
@@ -57,14 +57,6 @@ class WVGenericCryptoInterface {
|
|||||||
algorithm, signature, signature_length);
|
algorithm, signature, signature_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual OEMCryptoResult openSession(OEMCrypto_SESSION *session) {
|
|
||||||
return OEMCrypto_OpenSession(session);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual OEMCryptoResult closeSession(OEMCrypto_SESSION session) {
|
|
||||||
return OEMCrypto_CloseSession(session);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual OEMCryptoResult loadDeviceRSAKey(OEMCrypto_SESSION session,
|
virtual OEMCryptoResult loadDeviceRSAKey(OEMCrypto_SESSION session,
|
||||||
const uint8_t* wrapped_rsa_key,
|
const uint8_t* wrapped_rsa_key,
|
||||||
size_t wrapped_rsa_key_length) {
|
size_t wrapped_rsa_key_length) {
|
||||||
|
|||||||
@@ -96,10 +96,6 @@ class MockCrypto : public WVGenericCryptoInterface {
|
|||||||
size_t, OEMCrypto_Algorithm,
|
size_t, OEMCrypto_Algorithm,
|
||||||
const uint8_t*, size_t));
|
const uint8_t*, size_t));
|
||||||
|
|
||||||
MOCK_METHOD1(openSession, OEMCryptoResult(OEMCrypto_SESSION*));
|
|
||||||
|
|
||||||
MOCK_METHOD1(closeSession, OEMCryptoResult(OEMCrypto_SESSION));
|
|
||||||
|
|
||||||
MOCK_METHOD3(loadDeviceRSAKey, OEMCryptoResult(OEMCrypto_SESSION,
|
MOCK_METHOD3(loadDeviceRSAKey, OEMCryptoResult(OEMCrypto_SESSION,
|
||||||
const uint8_t*, size_t));
|
const uint8_t*, size_t));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user