Skip to content

Commit fc30ed0

Browse files
committed
crypto: fix missing OPENSSL_NO_ENGINE guard
1 parent 9ce1fff commit fc30ed0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/crypto/crypto_context.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ using ncrypto::BIOPointer;
3434
using ncrypto::ClearErrorOnReturn;
3535
using ncrypto::CryptoErrorList;
3636
using ncrypto::DHPointer;
37-
using ncrypto::EnginePointer;
3837
using ncrypto::EVPKeyPointer;
3938
using ncrypto::MarkPopErrorOnReturn;
4039
using ncrypto::SSLPointer;
@@ -65,6 +64,10 @@ using v8::Signature;
6564
using v8::String;
6665
using v8::Value;
6766

67+
#ifndef OPENSSL_NO_ENGINE
68+
using ncrypto::EnginePointer;
69+
#endif // !OPENSSL_NO_ENGINE
70+
6871
namespace crypto {
6972
static const char* const root_certs[] = {
7073
#include "node_root_certs.h" // NOLINT(build/include_order)

src/crypto/crypto_util.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ using ncrypto::BignumPointer;
3030
using ncrypto::BIOPointer;
3131
using ncrypto::CryptoErrorList;
3232
using ncrypto::DataPointer;
33-
using ncrypto::EnginePointer;
3433
using ncrypto::EVPKeyCtxPointer;
3534
using ncrypto::SSLCtxPointer;
3635
using ncrypto::SSLPointer;
@@ -56,6 +55,10 @@ using v8::Uint32;
5655
using v8::Uint8Array;
5756
using v8::Value;
5857

58+
#ifndef OPENSSL_NO_ENGINE
59+
using ncrypto::EnginePointer;
60+
#endif // !OPENSSL_NO_ENGINE
61+
5962
namespace crypto {
6063

6164
int PasswordCallback(char* buf, int size, int rwflag, void* u) {

0 commit comments

Comments
 (0)