Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2021-05-31 13:23:07 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2021-06-03 17:15:33 +0300
commit3b387578e7b06626e88825ad2e16f6de97ad0e6a (patch)
tree9f5e52b611ce217e410786f9888d415527194f89 /src
parent62493e9da2723cf6ebe1a6a1a2cd97c8db545b6e (diff)
crypto: add missing rand.h include
PR-URL: https://github.com/nodejs/node/pull/38864 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/crypto_context.cc1
-rw-r--r--src/crypto/crypto_random.cc1
-rw-r--r--src/crypto/crypto_util.cc2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/crypto_context.cc b/src/crypto/crypto_context.cc
index 8feefde819e..7eb17ee5347 100644
--- a/src/crypto/crypto_context.cc
+++ b/src/crypto/crypto_context.cc
@@ -13,6 +13,7 @@
#include <openssl/x509.h>
#include <openssl/pkcs12.h>
+#include <openssl/rand.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif // !OPENSSL_NO_ENGINE
diff --git a/src/crypto/crypto_random.cc b/src/crypto/crypto_random.cc
index b24f8f32136..7cb4513f9ad 100644
--- a/src/crypto/crypto_random.cc
+++ b/src/crypto/crypto_random.cc
@@ -8,6 +8,7 @@
#include "v8.h"
#include <openssl/bn.h>
+#include <openssl/rand.h>
namespace node {
diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc
index 47945389b40..bc4efe5f597 100644
--- a/src/crypto/crypto_util.cc
+++ b/src/crypto/crypto_util.cc
@@ -20,6 +20,8 @@
#endif
#endif
+#include <openssl/rand.h>
+
namespace node {
using v8::ArrayBuffer;