Skip to content

Commit

Permalink
Remove hardcoded rejection of Spake2+ configs (#15363)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhqwang authored and pull[bot] committed Jan 16, 2024
1 parent 0a7e02d commit 1257512
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ CHIP_ERROR GenericConfigurationManagerImpl<ConfigClass>::GetSpake2pSalt(uint8_t
size_t saltB64Len = 0;

err = ReadConfigValueStr(ConfigClass::kConfigKey_Spake2pSalt, saltB64, sizeof(saltB64), saltB64Len);
err = CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND;

#if defined(CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_SALT)
if (err == CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND)
{
Expand Down Expand Up @@ -369,7 +369,7 @@ CHIP_ERROR GenericConfigurationManagerImpl<ConfigClass>::GetSpake2pVerifier(uint
size_t verifierB64Len = 0;

err = ReadConfigValueStr(ConfigClass::kConfigKey_Spake2pVerifier, verifierB64, sizeof(verifierB64), verifierB64Len);
err = CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND;

#if defined(CHIP_DEVICE_CONFIG_USE_TEST_SPAKE2P_VERIFIER)
if (err == CHIP_DEVICE_ERROR_CONFIG_NOT_FOUND)
{
Expand Down

0 comments on commit 1257512

Please sign in to comment.