summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspector_io.cc2
-rw-r--r--src/node_crypto.cc15
-rw-r--r--src/node_crypto.h23
-rw-r--r--src/node_crypto_bio.cc1
-rw-r--r--src/tls_wrap.h1
5 files changed, 19 insertions, 23 deletions
diff --git a/src/inspector_io.cc b/src/inspector_io.cc
index 447269bb49..20785fc677 100644
--- a/src/inspector_io.cc
+++ b/src/inspector_io.cc
@@ -3,10 +3,12 @@
#include "inspector_socket_server.h"
#include "inspector/main_thread_interface.h"
#include "inspector/node_string.h"
+#include "base_object-inl.h"
#include "env-inl.h"
#include "debug_utils.h"
#include "node.h"
#include "node_crypto.h"
+#include "node_internals.h"
#include "node_mutex.h"
#include "v8-inspector.h"
#include "util.h"
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 7a1e5527c5..a5cead4ae5 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -20,9 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "node_crypto.h"
-#include "node.h"
#include "node_buffer.h"
-#include "node_constants.h"
#include "node_crypto_bio.h"
#include "node_crypto_clienthello-inl.h"
#include "node_crypto_groups.h"
@@ -32,11 +30,24 @@
#include "tls_wrap.h" // TLSWrap
#include "async_wrap-inl.h"
+#include "base_object-inl.h"
#include "env-inl.h"
#include "string_bytes.h"
#include "util-inl.h"
#include "v8.h"
+#include <openssl/ec.h>
+#include <openssl/ecdh.h>
+#ifndef OPENSSL_NO_ENGINE
+# include <openssl/engine.h>
+#endif // !OPENSSL_NO_ENGINE
+#include <openssl/evp.h>
+#include <openssl/pem.h>
+#include <openssl/x509v3.h>
+#include <openssl/hmac.h>
+#include <openssl/rand.h>
+#include <openssl/pkcs12.h>
+
#include <cerrno>
#include <climits> // INT_MAX
#include <cstring>
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 2955f6be64..2e82e1654c 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -24,34 +24,17 @@
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
-#include "node.h"
// ClientHelloParser
#include "node_crypto_clienthello.h"
-#include "node_buffer.h"
-
#include "env.h"
-#include "async_wrap-inl.h"
-#include "base_object-inl.h"
+#include "base_object.h"
+#include "util.h"
#include "v8.h"
-#include <openssl/ssl.h>
-#include <openssl/ec.h>
-#include <openssl/ecdh.h>
-#ifndef OPENSSL_NO_ENGINE
-# include <openssl/engine.h>
-#endif // !OPENSSL_NO_ENGINE
#include <openssl/err.h>
-#include <openssl/evp.h>
-// TODO(shigeki) Remove this after upgrading to 1.1.1
-#include <openssl/obj_mac.h>
-#include <openssl/pem.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
-#include <openssl/hmac.h>
-#include <openssl/rand.h>
-#include <openssl/pkcs12.h>
+#include <openssl/ssl.h>
namespace node {
namespace crypto {
diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc
index 2a3ed936f8..fcbe30ca9c 100644
--- a/src/node_crypto_bio.cc
+++ b/src/node_crypto_bio.cc
@@ -19,6 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+#include "base_object-inl.h"
#include "node_crypto_bio.h"
#include "openssl/bio.h"
#include "util-inl.h"
diff --git a/src/tls_wrap.h b/src/tls_wrap.h
index 3918d08e17..85a53f236d 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -24,7 +24,6 @@
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
-#include "node.h"
#include "node_crypto.h" // SSLWrap
#include "async_wrap.h"