diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-09-27 10:24:40 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2021-10-19 12:44:53 +0300 |
commit | 3a7b2d7e519181a7d5f3521be767f1f8c1a4a1c4 (patch) | |
tree | ef0f4589f849c0bd460e502ba6146acb867445d3 /src/node_external_reference.h | |
parent | 5d0d611eb0793329cbebfb8d4a37b32dd0e1a795 (diff) |
src: register external references in crypto bindings
PR-URL: https://github.com/nodejs/node/pull/40239
Refs: https://github.com/nodejs/node/pull/38905
Refs: https://github.com/nodejs/node/issues/37476
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_external_reference.h')
-rw-r--r-- | src/node_external_reference.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/node_external_reference.h b/src/node_external_reference.h index f51999e996f..7da15290a15 100644 --- a/src/node_external_reference.h +++ b/src/node_external_reference.h @@ -104,11 +104,18 @@ class ExternalReferenceRegistry { #define EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) #endif +#if HAVE_OPENSSL +#define EXTERNAL_REFERENCE_BINDING_LIST_CRYPTO(V) V(crypto) V(tls_wrap) +#else +#define EXTERNAL_REFERENCE_BINDING_LIST_CRYPTO(V) +#endif // HAVE_OPENSSL + #define EXTERNAL_REFERENCE_BINDING_LIST(V) \ EXTERNAL_REFERENCE_BINDING_LIST_BASE(V) \ EXTERNAL_REFERENCE_BINDING_LIST_INSPECTOR(V) \ EXTERNAL_REFERENCE_BINDING_LIST_I18N(V) \ - EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) + EXTERNAL_REFERENCE_BINDING_LIST_DTRACE(V) \ + EXTERNAL_REFERENCE_BINDING_LIST_CRYPTO(V) } // namespace node |