This update is not required for all devices. It is necessary for supporting some use cases for offline licenses on devices that do not support usage tables. Most devices are expected to support usage tables. There were no new changes to the OEMCrypto code. However, the ODK library has been updated so the minior version has been updated to 4. There were also some changes to the unit tests. 1. We added more tests for pattern decryption. 2. We added more tests for buffer overflow handling. 4. We added some support for fuzz testing. These tests are not quite ready for wide use.
49 lines
1.8 KiB
Python
49 lines
1.8 KiB
Python
# This is a gyp file for building the OEMCrypto unit tests with the reference
|
|
# code from the stand-alone source code.
|
|
{
|
|
'variables': {
|
|
# Override the variables below for the location of various gyp files.
|
|
# Alternatively, set the environment variable PATH_TO_CDM_DIR to point to a
|
|
# recent version of the source CDM. This *must* be a relative path.
|
|
'privacy_crypto_impl%': 'boringssl',
|
|
'boringssl_libcrypto_path%': '<!(echo $PATH_TO_CDM_DIR)/third_party/boringssl/boringssl.gyp:crypto',
|
|
'boringssl_libssl_path%': '<!(echo $PATH_TO_CDM_DIR)/third_party/boringssl/boringssl.gyp:ssl',
|
|
'gtest_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/gmock.gyp:gtest',
|
|
'gmock_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/gmock.gyp:gmock',
|
|
'gmock_main_dependency': '<!(echo $PATH_TO_CDM_DIR)/third_party/gmock.gyp:gmock_main',
|
|
'oemcrypto_dir': '.',
|
|
'util_dir': '../util',
|
|
'platform_specific_dir': '<!(echo $PATH_TO_CDM_DIR)/linux/src',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'oemcrypto_unittests',
|
|
'type': 'executable',
|
|
'sources': [
|
|
'test/oemcrypto_test_main.cpp',
|
|
'odk/src/core_message_deserialize.cpp',
|
|
'odk/src/core_message_serialize.cpp',
|
|
'<(platform_specific_dir)/file_store.cpp',
|
|
'<(platform_specific_dir)/log.cpp',
|
|
'<(util_dir)/src/platform.cpp',
|
|
'<(util_dir)/src/rw_lock.cpp',
|
|
'<(util_dir)/src/string_conversions.cpp',
|
|
'<(util_dir)/test/test_sleep.cpp',
|
|
'<(util_dir)/test/test_clock.cpp',
|
|
],
|
|
'includes': [
|
|
'../util/libssl_dependency.gypi',
|
|
'test/oemcrypto_unittests.gypi',
|
|
'ref/oec_ref.gypi',
|
|
],
|
|
'libraries': [
|
|
'-lpthread',
|
|
],
|
|
'dependencies': [
|
|
'<(gtest_dependency)',
|
|
'<(gmock_dependency)',
|
|
],
|
|
},
|
|
],
|
|
}
|