mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
014ab77276
commit
3facd4e1dc
1 file changed
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user