Add two compatibility headers for code written against current OpenSSL.

Just reduces the load of conditional includes a little for a total of 4
projects.

No other OpenSSL includes exist that could be reasonably made a
forwarding include and that are actually in use.

Bug: 497675628
Change-Id: I2cf195bdc5546c4a8953dfcec88bb43a6a6a6964
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/101547
Auto-Submit: Rudolf Polzer <rpolzer@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/build.json b/build.json
index 2c05e93..1d991cf 100644
--- a/build.json
+++ b/build.json
@@ -429,6 +429,7 @@
             "include/openssl/cmac.h",
             "include/openssl/cms.h",
             "include/openssl/conf.h",
+            "include/openssl/configuration.h",
             "include/openssl/cpu.h",
             "include/openssl/crypto.h",
             "include/openssl/ctrdrbg.h",
@@ -492,6 +493,7 @@
             "include/openssl/tls_prf.h",
             "include/openssl/trust_token.h",
             "include/openssl/type_check.h",
+            "include/openssl/types.h",
             "include/openssl/x509.h",
             "include/openssl/x509_vfy.h",
             "include/openssl/x509v3.h",
diff --git a/build.json.tmp b/build.json.tmp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build.json.tmp
diff --git a/gen/sources.bzl b/gen/sources.bzl
index 58f2047..437a52e 100644
--- a/gen/sources.bzl
+++ b/gen/sources.bzl
@@ -557,6 +557,7 @@
     "include/openssl/cmac.h",
     "include/openssl/cms.h",
     "include/openssl/conf.h",
+    "include/openssl/configuration.h",
     "include/openssl/cpu.h",
     "include/openssl/crypto.h",
     "include/openssl/ctrdrbg.h",
@@ -621,6 +622,7 @@
     "include/openssl/tls_prf.h",
     "include/openssl/trust_token.h",
     "include/openssl/type_check.h",
+    "include/openssl/types.h",
     "include/openssl/x509.h",
     "include/openssl/x509_vfy.h",
     "include/openssl/x509v3.h",
diff --git a/gen/sources.cmake b/gen/sources.cmake
index 3e98e1e..9d8f10b 100644
--- a/gen/sources.cmake
+++ b/gen/sources.cmake
@@ -577,6 +577,7 @@
   include/openssl/cmac.h
   include/openssl/cms.h
   include/openssl/conf.h
+  include/openssl/configuration.h
   include/openssl/cpu.h
   include/openssl/crypto.h
   include/openssl/ctrdrbg.h
@@ -641,6 +642,7 @@
   include/openssl/tls_prf.h
   include/openssl/trust_token.h
   include/openssl/type_check.h
+  include/openssl/types.h
   include/openssl/x509.h
   include/openssl/x509_vfy.h
   include/openssl/x509v3.h
diff --git a/gen/sources.gni b/gen/sources.gni
index 5f30e9f..475d665 100644
--- a/gen/sources.gni
+++ b/gen/sources.gni
@@ -557,6 +557,7 @@
   "include/openssl/cmac.h",
   "include/openssl/cms.h",
   "include/openssl/conf.h",
+  "include/openssl/configuration.h",
   "include/openssl/cpu.h",
   "include/openssl/crypto.h",
   "include/openssl/ctrdrbg.h",
@@ -621,6 +622,7 @@
   "include/openssl/tls_prf.h",
   "include/openssl/trust_token.h",
   "include/openssl/type_check.h",
+  "include/openssl/types.h",
   "include/openssl/x509.h",
   "include/openssl/x509_vfy.h",
   "include/openssl/x509v3.h",
diff --git a/gen/sources.json b/gen/sources.json
index 8c1b187..aa87ee5 100644
--- a/gen/sources.json
+++ b/gen/sources.json
@@ -540,6 +540,7 @@
       "include/openssl/cmac.h",
       "include/openssl/cms.h",
       "include/openssl/conf.h",
+      "include/openssl/configuration.h",
       "include/openssl/cpu.h",
       "include/openssl/crypto.h",
       "include/openssl/ctrdrbg.h",
@@ -604,6 +605,7 @@
       "include/openssl/tls_prf.h",
       "include/openssl/trust_token.h",
       "include/openssl/type_check.h",
+      "include/openssl/types.h",
       "include/openssl/x509.h",
       "include/openssl/x509_vfy.h",
       "include/openssl/x509v3.h",
diff --git a/gen/sources.mk b/gen/sources.mk
index 02e21fc..3bb15fb 100644
--- a/gen/sources.mk
+++ b/gen/sources.mk
@@ -548,6 +548,7 @@
   include/openssl/cmac.h \
   include/openssl/cms.h \
   include/openssl/conf.h \
+  include/openssl/configuration.h \
   include/openssl/cpu.h \
   include/openssl/crypto.h \
   include/openssl/ctrdrbg.h \
@@ -612,6 +613,7 @@
   include/openssl/tls_prf.h \
   include/openssl/trust_token.h \
   include/openssl/type_check.h \
+  include/openssl/types.h \
   include/openssl/x509.h \
   include/openssl/x509_vfy.h \
   include/openssl/x509v3.h \
diff --git a/include/openssl/configuration.h b/include/openssl/configuration.h
new file mode 100644
index 0000000..74c1d7a
--- /dev/null
+++ b/include/openssl/configuration.h
@@ -0,0 +1,18 @@
+// Copyright 2026 The BoringSSL Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/* This header is provided in order to make compiling against code that expects
+   OpenSSL easier. */
+
+#include "base.h"
diff --git a/include/openssl/types.h b/include/openssl/types.h
new file mode 100644
index 0000000..74c1d7a
--- /dev/null
+++ b/include/openssl/types.h
@@ -0,0 +1,18 @@
+// Copyright 2026 The BoringSSL Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/* This header is provided in order to make compiling against code that expects
+   OpenSSL easier. */
+
+#include "base.h"