File tree 5 files changed +27
-2
lines changed
darwin/MatterTvCastingBridge/MatterTvCastingBridge
tv-casting-common/include
5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 39
39
// WARNING: This option makes it possible to circumvent basic chip security functionality.
40
40
// Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.
41
41
//
42
+ #ifndef CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS
42
43
#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1
44
+ #endif
43
45
44
46
// Enable reading DRBG seed data from /dev/(u)random.
45
47
// This is needed for test applications and the CHIP device manager to function
Original file line number Diff line number Diff line change 33
33
#include < lib/support/CHIPMem.h>
34
34
#include < platform/PlatformManager.h>
35
35
36
+ #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE
37
+ #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
38
+ #endif
39
+
40
+ #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR
41
+ #define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00
42
+ #endif
43
+
36
44
@interface CastingServerBridge ()
37
45
38
46
@property AppParameters * appParameters;
Original file line number Diff line number Diff line change 33
33
34
34
namespace {
35
35
36
+ #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT
37
+ #define CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT 1000
38
+ #endif
39
+
36
40
CHIP_ERROR GeneratePaseSalt (std::vector<uint8_t > & spake2pSaltVector)
37
41
{
38
42
constexpr size_t kSaltLen = kSpake2p_Max_PBKDF_Salt_Length ;
Original file line number Diff line number Diff line change 33
33
#define CHIP_CONFIG_KVS_PATH "/tmp/chip_casting_kvs"
34
34
#endif
35
35
36
- #include <CHIPProjectConfig.h>
37
-
38
36
#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY 0
39
37
40
38
#define CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY_CLIENT 1
61
59
#define CHIP_ENABLE_ROTATING_DEVICE_ID 1
62
60
63
61
#define CHIP_DEVICE_CONFIG_ROTATING_DEVICE_ID_UNIQUE_ID_LENGTH 128
62
+
63
+ // Disable this since it should not be enabled for production setups
64
+ #define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 0
65
+
66
+ #define CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT 4
67
+
68
+ // Include the CHIPProjectConfig from config/standalone
69
+ // Add this at the end so that we can hit our #defines first
70
+ #include <CHIPProjectConfig.h>
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ using namespace chip::Crypto;
34
34
35
35
namespace {
36
36
37
+ #ifndef CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT
38
+ #define CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_ITERATION_COUNT 1000
39
+ #endif
40
+
37
41
CHIP_ERROR GeneratePaseSalt (std::vector<uint8_t > & spake2pSaltVector)
38
42
{
39
43
constexpr size_t kSaltLen = kSpake2p_Max_PBKDF_Salt_Length ;
You can’t perform that action at this time.
0 commit comments