Skip to content

Commit 093085c

Browse files
[build] Fix objc boringssl build backport (#40689)
Backport #40688 to `v1.75.x` branch
1 parent 8c45613 commit 093085c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/tsi/ssl_transport_security.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,8 @@ absl::Status ConfigureSpiffeRoots(
13381338
return absl::InvalidArgumentError(
13391339
"spiffe: root stack in the SPIFFE Bundle Map is nullptr.");
13401340
}
1341-
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
1341+
// the boringSSL library objective-C used did not have this function defined
1342+
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(OPENSSL_APPLE)
13421343
X509_STORE_CTX_set0_trusted_stack(ctx, *root_stack);
13431344
#else
13441345
X509_STORE_CTX_trusted_stack(ctx, *root_stack);

0 commit comments

Comments
 (0)