Changes include: 1. Fix refreshkeys when handling renewal response. 2. Change ECM start detect method. 3. Fix signing key truncation. 4. Reformat C++ code. 5. Return license_id in LICENSE_CAS_READY payload. 6. Expose OEMCrypto API version in the license request. 7. Add support for newly added widevine cas ids. 8. Store content iv and encryption mode info to entitled key. 9. Upgrade ODK library to 16.4.
22 lines
649 B
C++
22 lines
649 B
C++
// Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
|
|
#ifndef CAS_UTIL_H_
|
|
#define CAS_UTIL_H_
|
|
|
|
#include <memory>
|
|
|
|
#if __cplusplus >= 201402L || \
|
|
(defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \
|
|
(defined(_MSC_VER) && _MSC_VER >= 1900)
|
|
using std::make_unique;
|
|
#else
|
|
template <typename T, typename... Args>
|
|
std::unique_ptr<T> make_unique(Args&&... args) {
|
|
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
|
}
|
|
#endif
|
|
|
|
#endif // CAS_UTIL_H_
|