Make all non-asm-included BoringSSL headers at least include <openssl/base.h>. This guarantees that any successful header include provides at least the basic macros like `OPENSSL_IS_BORINGSSL`. Change-Id: If9cbce85eac9aebcf6890524d3f05c7c6a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/99787 Auto-Submit: Rudolf Polzer <rpolzer@google.com> Reviewed-by: Xiangfei Ding <xfding@google.com> Commit-Queue: Xiangfei Ding <xfding@google.com>
diff --git a/include/openssl/dtls1.h b/include/openssl/dtls1.h index 0e62d30..e636262 100644 --- a/include/openssl/dtls1.h +++ b/include/openssl/dtls1.h
@@ -14,3 +14,5 @@ /* This header is provided in order to make compiling against code that expects OpenSSL easier. */ + +#include "base.h"
diff --git a/include/openssl/evp_errors.h b/include/openssl/evp_errors.h index ebb72cd..b63222a 100644 --- a/include/openssl/evp_errors.h +++ b/include/openssl/evp_errors.h
@@ -15,6 +15,9 @@ #ifndef OPENSSL_HEADER_EVP_ERRORS_H #define OPENSSL_HEADER_EVP_ERRORS_H +#include "base.h" + + #define EVP_R_BUFFER_TOO_SMALL 100 #define EVP_R_COMMAND_NOT_SUPPORTED 101 #define EVP_R_DECODE_ERROR 102
diff --git a/include/openssl/is_boringssl.h b/include/openssl/is_boringssl.h index 8f90326..98e9ebc 100644 --- a/include/openssl/is_boringssl.h +++ b/include/openssl/is_boringssl.h
@@ -14,3 +14,5 @@ // This header is provided in order to catch include path errors in consuming // BoringSSL. + +#include "base.h"
diff --git a/include/openssl/safestack.h b/include/openssl/safestack.h index 3d36c20..3d63dfe 100644 --- a/include/openssl/safestack.h +++ b/include/openssl/safestack.h
@@ -14,3 +14,5 @@ /* This header is provided in order to make compiling against code that expects OpenSSL easier. */ + +#include "base.h"
diff --git a/include/openssl/service_indicator.h b/include/openssl/service_indicator.h index 460c749..0f1f359 100644 --- a/include/openssl/service_indicator.h +++ b/include/openssl/service_indicator.h
@@ -17,3 +17,5 @@ // an older version of library. // // TODO(davidben): Remove this header from downstream code and remove the file. + +#include "base.h"
diff --git a/include/openssl/x509v3_errors.h b/include/openssl/x509v3_errors.h index 76e2505..5bb4ec2 100644 --- a/include/openssl/x509v3_errors.h +++ b/include/openssl/x509v3_errors.h
@@ -15,6 +15,9 @@ #ifndef OPENSSL_HEADER_X509V3_ERRORS_H #define OPENSSL_HEADER_X509V3_ERRORS_H +#include "base.h" + + #define X509V3_R_BAD_IP_ADDRESS 100 #define X509V3_R_BAD_OBJECT 101 #define X509V3_R_BN_DEC2BN_ERROR 102