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>'
This commit is contained in:
Ben Noordhuis committed 2013-11-08 17:50:01 +01:00
1 parent 014ab77276
commit 3facd4e1dc
1 file changed
+3
+3
View File
@@ -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) {