Repository navigation
Update BoringSSL to match gRPC v1.69.0 (b8b3e6e111) #2002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,17 +108,17 @@ function(download_external_sources) | |
| if (FIREBASE_USE_BORINGSSL) | ||
| # CMake's find_package(OpenSSL) doesn't quite work right with BoringSSL | ||
| # unless the header file contains OPENSSL_VERSION_NUMBER. | ||
| file(READ ${PROJECT_BINARY_DIR}/external/src/boringssl/include/openssl/opensslv.h TMP_HEADER_CONTENTS) | ||
| file(READ ${PROJECT_BINARY_DIR}/external/src/boringssl/src/include/openssl/opensslv.h TMP_HEADER_CONTENTS) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. File paths in CMake should be wrapped in double quotes to prevent errors if the path contains spaces (e.g., if the build directory path contains spaces). Please apply this quoting to all |
||
| if (NOT TMP_HEADER_CONTENTS MATCHES OPENSSL_VERSION_NUMBER) | ||
| file(APPEND ${PROJECT_BINARY_DIR}/external/src/boringssl/include/openssl/opensslv.h | ||
| file(APPEND ${PROJECT_BINARY_DIR}/external/src/boringssl/src/include/openssl/opensslv.h | ||
| "\n#ifndef OPENSSL_VERSION_NUMBER\n# define OPENSSL_VERSION_NUMBER 0x10010107L\n#endif\n") | ||
| endif() | ||
| # Also add an #include <stdlib.h> since openssl has it and boringssl | ||
| # doesn't, and some of our code depends on the transitive dependency (this | ||
| # is a bug). | ||
| file(READ ${PROJECT_BINARY_DIR}/external/src/boringssl/include/openssl/rand.h TMP_HEADER2_CONTENTS) | ||
| file(READ ${PROJECT_BINARY_DIR}/external/src/boringssl/src/include/openssl/rand.h TMP_HEADER2_CONTENTS) | ||
| if (NOT TMP_HEADER2_CONTENTS MATCHES "<stdlib.h>") | ||
| file(APPEND ${PROJECT_BINARY_DIR}/external/src/boringssl/include/openssl/rand.h | ||
| file(APPEND ${PROJECT_BINARY_DIR}/external/src/boringssl/src/include/openssl/rand.h | ||
| "\n#include <stdlib.h>\n") | ||
| endif() | ||
| endif() | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a generic variable name like
commitcan lead to variable pollution and conflicts if other external dependency scripts (which may be included in the same CMake scope) also define a variable namedcommit. It is safer to use a prefixed variable name, such asboringssl_commit, or retain the previousboringssl_commit_tagnaming convention.