Skip to content

Commit

Permalink
[crypto] Improve usage of external mbedtls in crypto
Browse files Browse the repository at this point in the history
src/crypto/crypto.gni has been updated to remove the assert
added by #23538.
This assert assumes that you only build mbedtls externally if you
have chip_crypto = 'mbedtls'. This is an invalid assumption and
is certainly not the case for the Open IoT SDK.

Signed-off-by: Anna Bridge <[email protected]>
  • Loading branch information
ATmobica committed May 23, 2023
1 parent 1efbaf6 commit 73ee155
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/crypto/crypto.gni
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@
# limitations under the License.

declare_args() {
# Crypto implementation: mbedtls, openssl, boringssl, platform.
# Crypto implementation: mbedtls, psa, openssl, boringssl, platform.
chip_crypto = ""
chip_with_se05x = 0

# Compile mbedtls externally. Only used if chip_crypto == "mbedtls"
# Compile mbedtls externally.
chip_external_mbedtls = false
}

assert(
!chip_external_mbedtls || chip_crypto == "mbedtls" || chip_crypto == "psa",
"Use of external mbedtls requires the mbedtls or psa crypto impl")

0 comments on commit 73ee155

Please sign in to comment.