Browse Source

crypto: unbreak build with no-NPN shared openssl

Unbreak the build when linking against a shared version of OpenSSL that
doesn't support NPN (Next Protocol Negotiation.)

Fixes the following build error:

  ../src/node_crypto.cc:140: error: no member function
  'AdvertiseNextProtoCallback' declared in
  'node::crypto::SSLWrap<node::TLSCallbacks>'
  ../src/node_crypto.cc:147: error: no member function
  'SelectNextProtoCallback' declared in
  'node::crypto::SSLWrap<node::TLSCallbacks>'
v0.11.9-release
Ben Noordhuis 11 years ago
parent
commit
3facd4e1dc
  1. 3
      src/node_crypto.cc

3
src/node_crypto.cc

@ -117,6 +117,8 @@ template int SSLWrap<TLSCallbacks>::NewSessionCallback(SSL* s,
template void SSLWrap<TLSCallbacks>::OnClientHello(
void* arg,
const ClientHelloParser::ClientHello& hello);
#ifdef OPENSSL_NPN_NEGOTIATED
template int SSLWrap<TLSCallbacks>::AdvertiseNextProtoCallback(
SSL* s,
const unsigned char** data,
@ -129,6 +131,7 @@ template int SSLWrap<TLSCallbacks>::SelectNextProtoCallback(
const unsigned char* in,
unsigned int inlen,
void* arg);
#endif
static void crypto_threadid_cb(CRYPTO_THREADID* tid) {

Loading…
Cancel
Save