Skip to content

Commit 5a8756d

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Default to boringssl when building on darwin. (#24929)
This gets rid of the openssl dependency.
1 parent fc07297 commit 5a8756d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/crypto/BUILD.gn

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ if (chip_crypto == "") {
2525
current_os == "zephyr" || current_os == "mbed" || current_os == "webos" ||
2626
current_os == "cmsis-rtos") {
2727
chip_crypto = "mbedtls"
28+
} else if (current_os == "mac" || current_os == "ios") {
29+
chip_crypto = "boringssl"
2830
} else {
2931
chip_crypto = "openssl"
3032
}

src/tools/chip-cert/BUILD.gn

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ executable("chip-cert") {
3737
"chip-cert.h",
3838
]
3939

40-
public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
40+
if (chip_crypto == "openssl") {
41+
public_configs = [ "${chip_root}/src/crypto:openssl_config" ]
42+
}
4143

4244
cflags = [ "-Wconversion" ]
4345

0 commit comments

Comments
 (0)