Skip to content

Instantly share code, notes, and snippets.

@sam-github
Created June 6, 2019 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam-github/75f33f84b39e822f6e06e87c16e83ab3 to your computer and use it in GitHub Desktop.
Save sam-github/75f33f84b39e822f6e06e87c16e83ab3 to your computer and use it in GitHub Desktop.
../../src/node_crypto.cc: In function ‘v8::Maybe<bool> node::crypto::error::Decorate(node::Environment*, v8::Local<v8::Object>, long unsigned int)’:
../../src/node_crypto.cc:313:22: error: ‘ERR_LIB_OSSL_STORE’ was not declared in this scope
#define V(name) case ERR_LIB_##name: lib = #name "_"; break;
^~~~~~~~
../../src/node_crypto.cc:302:5: note: in expansion of macro ‘V’
V(OSSL_STORE) \
^
../../src/node_crypto.cc:316:33: note: in expansion of macro ‘OSSL_ERROR_CODES_MAP’
switch (ERR_GET_LIB(err)) { OSSL_ERROR_CODES_MAP(V) }
^~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:313:22: note: suggested alternative: ‘ERR_LIB_STORE’
#define V(name) case ERR_LIB_##name: lib = #name "_"; break;
^~~~~~~~
../../src/node_crypto.cc:302:5: note: in expansion of macro ‘V’
V(OSSL_STORE) \
^
../../src/node_crypto.cc:316:33: note: in expansion of macro ‘OSSL_ERROR_CODES_MAP’
switch (ERR_GET_LIB(err)) { OSSL_ERROR_CODES_MAP(V) }
^~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:313:22: error: ‘ERR_LIB_SM2’ was not declared in this scope
#define V(name) case ERR_LIB_##name: lib = #name "_"; break;
^~~~~~~~
../../src/node_crypto.cc:310:5: note: in expansion of macro ‘V’
V(SM2) \
^
../../src/node_crypto.cc:316:33: note: in expansion of macro ‘OSSL_ERROR_CODES_MAP’
switch (ERR_GET_LIB(err)) { OSSL_ERROR_CODES_MAP(V) }
^~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:313:22: note: suggested alternative: ‘ERR_LIB_CMS’
#define V(name) case ERR_LIB_##name: lib = #name "_"; break;
^~~~~~~~
../../src/node_crypto.cc:310:5: note: in expansion of macro ‘V’
V(SM2) \
^
../../src/node_crypto.cc:316:33: note: in expansion of macro ‘OSSL_ERROR_CODES_MAP’
switch (ERR_GET_LIB(err)) { OSSL_ERROR_CODES_MAP(V) }
^~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc: At global scope:
../../src/node_crypto.cc:538:35: error: ‘TLS1_3_VERSION’ was not declared in this scope
const int MAX_SUPPORTED_VERSION = TLS1_3_VERSION;
^~~~~~~~~~~~~~
../../src/node_crypto.cc:538:35: note: suggested alternative: ‘TLS1_1_VERSION’
const int MAX_SUPPORTED_VERSION = TLS1_3_VERSION;
^~~~~~~~~~~~~~
TLS1_1_VERSION
../../src/node_crypto.cc: In static member function ‘static void node::crypto::SecureContext::SetCipherSuites(const v8::FunctionCallbackInfo<v8::Value>&)’:
../../src/node_crypto.cc:1113:8: error: ‘SSL_CTX_set_ciphersuites’ was not declared in this scope
if (!SSL_CTX_set_ciphersuites(sc->ctx_.get(), *ciphers)) {
^~~~~~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:1113:8: note: suggested alternative: ‘SSL_CTX_set_cipher_list’
if (!SSL_CTX_set_ciphersuites(sc->ctx_.get(), *ciphers)) {
^~~~~~~~~~~~~~~~~~~~~~~~
SSL_CTX_set_cipher_list
../../src/node_crypto.cc: In static member function ‘static void node::crypto::SSLWrap<Base>::GetEphemeralKeyInfo(const v8::FunctionCallbackInfo<v8::Value>&)’:
../../src/node_crypto.cc:2490:12: error: ‘EVP_PKEY_X25519’ was not declared in this scope
case EVP_PKEY_X25519:
^~~~~~~~~~~~~~~
../../src/node_crypto.cc:2490:12: note: suggested alternative: ‘EVP_PKEY_DSA1’
case EVP_PKEY_X25519:
^~~~~~~~~~~~~~~
EVP_PKEY_DSA1
../../src/node_crypto.cc:2491:12: error: ‘EVP_PKEY_X448’ was not declared in this scope
case EVP_PKEY_X448:
^~~~~~~~~~~~~
../../src/node_crypto.cc:2491:12: note: suggested alternative: ‘EVP_PKEY_sign’
case EVP_PKEY_X448:
^~~~~~~~~~~~~
EVP_PKEY_sign
../../src/node_crypto.cc: In member function ‘v8::Local<v8::Value> node::crypto::KeyObject::GetAsymmetricKeyType() const’:
../../src/node_crypto.cc:3737:8: error: ‘EVP_PKEY_RSA_PSS’ was not declared in this scope
case EVP_PKEY_RSA_PSS:
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:3737:8: note: suggested alternative: ‘EVP_PKEY_RSA2’
case EVP_PKEY_RSA_PSS:
^~~~~~~~~~~~~~~~
EVP_PKEY_RSA2
../../src/node_crypto.cc:3743:8: error: ‘EVP_PKEY_ED25519’ was not declared in this scope
case EVP_PKEY_ED25519:
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:3743:8: note: suggested alternative: ‘EVP_PKEY_DSA1’
case EVP_PKEY_ED25519:
^~~~~~~~~~~~~~~~
EVP_PKEY_DSA1
../../src/node_crypto.cc:3745:8: error: ‘EVP_PKEY_ED448’ was not declared in this scope
case EVP_PKEY_ED448:
^~~~~~~~~~~~~~
../../src/node_crypto.cc:3745:8: note: suggested alternative: ‘EVP_PKEY_DSA1’
case EVP_PKEY_ED448:
^~~~~~~~~~~~~~
EVP_PKEY_DSA1
../../src/node_crypto.cc:3747:8: error: ‘EVP_PKEY_X25519’ was not declared in this scope
case EVP_PKEY_X25519:
^~~~~~~~~~~~~~~
../../src/node_crypto.cc:3747:8: note: suggested alternative: ‘EVP_PKEY_DSA1’
case EVP_PKEY_X25519:
^~~~~~~~~~~~~~~
EVP_PKEY_DSA1
../../src/node_crypto.cc:3749:8: error: ‘EVP_PKEY_X448’ was not declared in this scope
case EVP_PKEY_X448:
^~~~~~~~~~~~~
../../src/node_crypto.cc:3749:8: note: suggested alternative: ‘EVP_PKEY_sign’
case EVP_PKEY_X448:
^~~~~~~~~~~~~
EVP_PKEY_sign
../../src/node_crypto.cc: In function ‘bool node::crypto::ApplyRSAOptions(const node::crypto::ManagedEVPPKey&, EVP_PKEY_CTX*, int, const v8::Maybe<int>&)’:
../../src/node_crypto.cc:4736:34: error: ‘EVP_PKEY_RSA_PSS’ was not declared in this scope
EVP_PKEY_id(pkey.get()) == EVP_PKEY_RSA_PSS) {
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:4736:34: note: suggested alternative: ‘EVP_PKEY_RSA2’
EVP_PKEY_id(pkey.get()) == EVP_PKEY_RSA_PSS) {
^~~~~~~~~~~~~~~~
EVP_PKEY_RSA2
../../src/node_crypto.cc: In function ‘int node::crypto::GetDefaultSignPadding(const node::crypto::ManagedEVPPKey&)’:
../../src/node_crypto.cc:4792:36: error: ‘EVP_PKEY_RSA_PSS’ was not declared in this scope
return EVP_PKEY_id(key.get()) == EVP_PKEY_RSA_PSS ? RSA_PKCS1_PSS_PADDING :
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:4792:36: note: suggested alternative: ‘EVP_PKEY_RSA2’
return EVP_PKEY_id(key.get()) == EVP_PKEY_RSA_PSS ? RSA_PKCS1_PSS_PADDING :
^~~~~~~~~~~~~~~~
EVP_PKEY_RSA2
../../src/node_crypto.cc: In function ‘void node::crypto::SignOneShot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../../src/node_crypto.cc:4980:8: error: ‘EVP_DigestSign’ was not declared in this scope
if (!EVP_DigestSign(mdctx.get(), nullptr, &sig_len, input, data.length()))
^~~~~~~~~~~~~~
../../src/node_crypto.cc:4980:8: note: suggested alternative: ‘EVP_DigestSignInit’
if (!EVP_DigestSign(mdctx.get(), nullptr, &sig_len, input, data.length()))
^~~~~~~~~~~~~~
EVP_DigestSignInit
../../src/node_crypto.cc:4984:8: error: ‘EVP_DigestSign’ was not declared in this scope
if (!EVP_DigestSign(mdctx.get(),
^~~~~~~~~~~~~~
../../src/node_crypto.cc:4984:8: note: suggested alternative: ‘EVP_DigestSignInit’
if (!EVP_DigestSign(mdctx.get(),
^~~~~~~~~~~~~~
EVP_DigestSignInit
../../src/node_crypto.cc: In function ‘void node::crypto::VerifyOneShot(const v8::FunctionCallbackInfo<v8::Value>&)’:
../../src/node_crypto.cc:5153:17: error: ‘EVP_DigestVerify’ was not declared in this scope
const int r = EVP_DigestVerify(
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:5153:17: note: suggested alternative: ‘EVP_DigestVerifyInit’
const int r = EVP_DigestVerify(
^~~~~~~~~~~~~~~~
EVP_DigestVerifyInit
../../src/node_crypto.cc: In member function ‘virtual node::crypto::EVPKeyCtxPointer node::crypto::RSAPSSKeyPairGenerationConfig::Setup()’:
../../src/node_crypto.cc:6155:49: error: ‘EVP_PKEY_RSA_PSS’ was not declared in this scope
return EVPKeyCtxPointer(EVP_PKEY_CTX_new_id(EVP_PKEY_RSA_PSS, nullptr));
^~~~~~~~~~~~~~~~
../../src/node_crypto.cc:6155:49: note: suggested alternative: ‘EVP_PKEY_RSA2’
return EVPKeyCtxPointer(EVP_PKEY_CTX_new_id(EVP_PKEY_RSA_PSS, nullptr));
^~~~~~~~~~~~~~~~
EVP_PKEY_RSA2
../../src/node_crypto.cc: In member function ‘virtual bool node::crypto::RSAPSSKeyPairGenerationConfig::Configure(const EVPKeyCtxPointer&)’:
../../src/node_crypto.cc:6163:11: error: ‘EVP_PKEY_CTX_set_rsa_pss_keygen_md’ was not declared in this scope
if (EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx.get(), md_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:6163:11: note: suggested alternative: ‘EVP_PKEY_CTX_set_rsa_keygen_bits’
if (EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx.get(), md_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVP_PKEY_CTX_set_rsa_keygen_bits
../../src/node_crypto.cc:6168:10: error: ‘EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md’ was not declared in this scope
if (EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx.get(), mgf1_md_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:6168:10: note: suggested alternative: ‘EVP_PKEY_CTX_set_rsa_keygen_pubexp’
if (EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx.get(), mgf1_md_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVP_PKEY_CTX_set_rsa_keygen_pubexp
../../src/node_crypto.cc:6173:11: error: ‘EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen’ was not declared in this scope
if (EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx.get(), saltlen_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/node_crypto.cc:6173:11: note: suggested alternative: ‘EVP_PKEY_CTX_set_rsa_pss_saltlen’
if (EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx.get(), saltlen_) <= 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVP_PKEY_CTX_set_rsa_pss_saltlen
In file included from ../../src/node_constants.h:27,
from ../../src/node_options.h:10,
from ../../src/inspector_agent.h:9,
from ../../src/env.h:29,
from ../../src/node_crypto.h:30,
from ../../src/node_crypto.cc:22:
../../src/node_crypto.cc: In function ‘void node::crypto::Initialize(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>, void*)’:
../../src/node_crypto.cc:6908:32: error: ‘EVP_PKEY_ED25519’ was not declared in this scope
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED25519);
^~~~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6908:32: note: suggested alternative: ‘EVP_PKEY_DSA1’
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED25519);
^~~~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6909:32: error: ‘EVP_PKEY_ED448’ was not declared in this scope
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED448);
^~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6909:32: note: suggested alternative: ‘EVP_PKEY_DSA1’
NODE_DEFINE_CONSTANT(target, EVP_PKEY_ED448);
^~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6910:32: error: ‘EVP_PKEY_X25519’ was not declared in this scope
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X25519);
^~~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6910:32: note: suggested alternative: ‘EVP_PKEY_DSA1’
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X25519);
^~~~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6911:32: error: ‘EVP_PKEY_X448’ was not declared in this scope
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X448);
^~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
../../src/node_crypto.cc:6911:32: note: suggested alternative: ‘EVP_PKEY_sign’
NODE_DEFINE_CONSTANT(target, EVP_PKEY_X448);
^~~~~~~~~~~~~
../../src/node.h:375:54: note: in definition of macro ‘NODE_DEFINE_CONSTANT’
v8::Number::New(isolate, static_cast<double>(constant)); \
^~~~~~~~
In file included from ../../src/util.h:27,
from ../../src/aliased_buffer.h:7,
from ../../src/env.h:27,
from ../../src/node_crypto.h:30,
from ../../src/node_crypto.cc:22:
../../deps/v8/include/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::BaseObject; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::BaseObject>&)]’:
../../src/base_object-inl.h:104:42: required from here
../../deps/v8/include/v8.h:9843:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::BaseObject>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::BaseObject>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment