Add various missing includes
Silence some clang-tidy warnings.
Change-Id: I194660d9f2b5282be073b82ec42bc70e835fce24
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/78988
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
diff --git a/crypto/ec/ec_asn1.cc b/crypto/ec/ec_asn1.cc
index ce81580..58f379c 100644
--- a/crypto/ec/ec_asn1.cc
+++ b/crypto/ec/ec_asn1.cc
@@ -19,6 +19,7 @@
#include <openssl/bn.h>
#include <openssl/bytestring.h>
+#include <openssl/ec_key.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
diff --git a/crypto/ecdsa/ecdsa_p1363_test.cc b/crypto/ecdsa/ecdsa_p1363_test.cc
index 0600115..d8f1a32 100644
--- a/crypto/ecdsa/ecdsa_p1363_test.cc
+++ b/crypto/ecdsa/ecdsa_p1363_test.cc
@@ -14,7 +14,6 @@
#include <stdio.h>
-#include <utility>
#include <vector>
#include <gtest/gtest.h>
@@ -27,7 +26,6 @@
#include <openssl/rand.h>
#include "../test/file_test.h"
-#include "../test/test_util.h"
#include "../test/wycheproof_util.h"
diff --git a/crypto/mem_test.cc b/crypto/mem_test.cc
index 70b283c..96fbc68 100644
--- a/crypto/mem_test.cc
+++ b/crypto/mem_test.cc
@@ -12,6 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <openssl/mem.h>
+
+#include <memory>
+#include <utility>
+#include <vector>
+
#include <gtest/gtest.h>
#include "mem_internal.h"
diff --git a/crypto/pem/pem_lib.cc b/crypto/pem/pem_lib.cc
index 7679aa0..e7c4e0b 100644
--- a/crypto/pem/pem_lib.cc
+++ b/crypto/pem/pem_lib.cc
@@ -21,6 +21,7 @@
#include <openssl/base64.h>
#include <openssl/buf.h>
+#include <openssl/cipher.h>
#include <openssl/des.h>
#include <openssl/err.h>
#include <openssl/evp.h>
diff --git a/crypto/x509/x509_test.cc b/crypto/x509/x509_test.cc
index aa96a28..6159d40 100644
--- a/crypto/x509/x509_test.cc
+++ b/crypto/x509/x509_test.cc
@@ -33,6 +33,7 @@
#include <openssl/nid.h>
#include <openssl/pem.h>
#include <openssl/pool.h>
+#include <openssl/span.h>
#include <openssl/x509.h>
#include "../internal.h"
diff --git a/crypto/x509/x_x509.cc b/crypto/x509/x_x509.cc
index 485231f..01b3569 100644
--- a/crypto/x509/x_x509.cc
+++ b/crypto/x509/x_x509.cc
@@ -16,6 +16,7 @@
#include <limits.h>
#include <stdio.h>
+#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include <openssl/bytestring.h>
#include <openssl/evp.h>
diff --git a/pki/test_helpers.cc b/pki/test_helpers.cc
index 123aacb..3237614 100644
--- a/pki/test_helpers.cc
+++ b/pki/test_helpers.cc
@@ -31,6 +31,7 @@
#include "../crypto/test/test_data.h"
#include "cert_error_params.h"
#include "cert_errors.h"
+#include "parse_values.h"
#include "parser.h"
#include "pem.h"
#include "simple_path_builder_delegate.h"
diff --git a/ssl/handshake.cc b/ssl/handshake.cc
index cd6a25d..1b1a9b5 100644
--- a/ssl/handshake.cc
+++ b/ssl/handshake.cc
@@ -17,6 +17,7 @@
#include <assert.h>
+#include <algorithm>
#include <utility>
#include <openssl/rand.h>
diff --git a/ssl/test/packeted_bio.cc b/ssl/test/packeted_bio.cc
index dfd8c91..b30699b 100644
--- a/ssl/test/packeted_bio.cc
+++ b/ssl/test/packeted_bio.cc
@@ -24,6 +24,7 @@
#include <utility>
#include <vector>
+#include <openssl/bio.h>
#include <openssl/mem.h>
#include "../../crypto/internal.h"