Add some missing includes

Change-Id: Iba36dc1cf61792ba0fa733f7a15c3f925b3e8157
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/82427
Reviewed-by: Lily Chen <chlily@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: Lily Chen <chlily@google.com>
diff --git a/crypto/x509/v3_purp.cc b/crypto/x509/v3_purp.cc
index 04f67e8..e7e0518 100644
--- a/crypto/x509/v3_purp.cc
+++ b/crypto/x509/v3_purp.cc
@@ -14,6 +14,7 @@
 
 #include <string.h>
 
+#include <openssl/asn1.h>
 #include <openssl/digest.h>
 #include <openssl/err.h>
 #include <openssl/mem.h>
diff --git a/crypto/x509/x_name.cc b/crypto/x509/x_name.cc
index ce9b01d..13f4965 100644
--- a/crypto/x509/x_name.cc
+++ b/crypto/x509/x_name.cc
@@ -20,6 +20,7 @@
 
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
+#include <openssl/bytestring.h>
 #include <openssl/buf.h>
 #include <openssl/err.h>
 #include <openssl/mem.h>
diff --git a/ssl/ssl_key_share.cc b/ssl/ssl_key_share.cc
index 9f885d5..94d07ff 100644
--- a/ssl/ssl_key_share.cc
+++ b/ssl/ssl_key_share.cc
@@ -17,6 +17,7 @@
 #include <assert.h>
 #include <string.h>
 
+#include <iterator>
 #include <utility>
 
 #include <openssl/bn.h>