Skip to content

Commit

Permalink
Default to boringssl when building on darwin. (#24929)
Browse files Browse the repository at this point in the history
This gets rid of the openssl dependency.
  • Loading branch information
bzbarsky-apple authored Feb 9, 2023
1 parent 1857b86 commit 9c631df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/crypto/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if (chip_crypto == "") {
current_os == "zephyr" || current_os == "mbed" || current_os == "webos" ||
current_os == "cmsis-rtos") {
chip_crypto = "mbedtls"
} else if (current_os == "mac" || current_os == "ios") {
chip_crypto = "boringssl"
} else {
chip_crypto = "openssl"
}
Expand Down
4 changes: 3 additions & 1 deletion src/tools/chip-cert/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ executable("chip-cert") {
"chip-cert.h",
]

public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
if (chip_crypto == "openssl") {
public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
}

cflags = [ "-Wconversion" ]

Expand Down

0 comments on commit 9c631df

Please sign in to comment.