summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-07-26 12:54:46 +0200
committerJames M Snell <jasnell@gmail.com>2018-08-12 03:58:49 -0700
commit40ae307071e505ecc85cf31c70e5644e385c9be4 (patch)
tree105dbdd578cf480cbefc7c0b0a3193cce708c665 /src/node_crypto.h
parent987dc0711137685dabf472ad8e137ad365013557 (diff)
downloadandroid-node-v8-40ae307071e505ecc85cf31c70e5644e385c9be4.tar.gz
android-node-v8-40ae307071e505ecc85cf31c70e5644e385c9be4.tar.bz2
android-node-v8-40ae307071e505ecc85cf31c70e5644e385c9be4.zip
src: avoid possible race during NodeBIO initialization
PR-URL: https://github.com/nodejs/node/pull/21984 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index ee069c9cf7..269bccbc03 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -97,6 +97,8 @@ extern int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx);
extern void UseExtraCaCerts(const std::string& file);
+void InitCryptoOnce();
+
class SecureContext : public BaseObject {
public:
~SecureContext() override {