Various IWYU fixes

Change-Id: Ife51c3d80a5a357c49263dc476f32a5fd216cf04
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/94407
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>
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/crypto/x509/v3_ncons.cc b/crypto/x509/v3_ncons.cc
index 987cb74..7ed8b67 100644
--- a/crypto/x509/v3_ncons.cc
+++ b/crypto/x509/v3_ncons.cc
@@ -19,13 +19,16 @@
 
 #include <utility>
 
+#include <openssl/asn1.h>
 #include <openssl/asn1t.h>
 #include <openssl/base.h>
+#include <openssl/bio.h>
 #include <openssl/conf.h>
 #include <openssl/err.h>
 #include <openssl/mem.h>
 #include <openssl/obj.h>
 #include <openssl/span.h>
+#include <openssl/stack.h>
 #include <openssl/x509.h>
 
 #include "../internal.h"
diff --git a/crypto/x509/v3_utl.cc b/crypto/x509/v3_utl.cc
index 5617e56..6605c5c 100644
--- a/crypto/x509/v3_utl.cc
+++ b/crypto/x509/v3_utl.cc
@@ -18,6 +18,8 @@
 #include <stdio.h>
 #include <string.h>
 
+#include <utility>
+
 #include <openssl/bn.h>
 #include <openssl/bytestring.h>
 #include <openssl/conf.h>
diff --git a/crypto/x509/x509_test.cc b/crypto/x509/x509_test.cc
index ef0e1b8..6c509be 100644
--- a/crypto/x509/x509_test.cc
+++ b/crypto/x509/x509_test.cc
@@ -20,6 +20,7 @@
 #include <memory>
 #include <string>
 #include <string_view>
+#include <utility>
 #include <vector>
 
 #include <gtest/gtest.h>
@@ -35,6 +36,7 @@
 #include <openssl/evp.h>
 #include <openssl/mldsa.h>
 #include <openssl/nid.h>
+#include <openssl/obj.h>
 #include <openssl/pem.h>
 #include <openssl/pool.h>
 #include <openssl/span.h>
diff --git a/ssl/extensions.cc b/ssl/extensions.cc
index 7a93e93..470e74f 100644
--- a/ssl/extensions.cc
+++ b/ssl/extensions.cc
@@ -36,6 +36,7 @@
 #include <openssl/hpke.h>
 #include <openssl/mem.h>
 #include <openssl/nid.h>
+#include <openssl/pool.h>
 #include <openssl/rand.h>
 
 #include "../crypto/bytestring/internal.h"