diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 857d5862842..3bc550536a9 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -117,6 +117,8 @@ template int SSLWrap::NewSessionCallback(SSL* s, template void SSLWrap::OnClientHello( void* arg, const ClientHelloParser::ClientHello& hello); + +#ifdef OPENSSL_NPN_NEGOTIATED template int SSLWrap::AdvertiseNextProtoCallback( SSL* s, const unsigned char** data, @@ -129,6 +131,7 @@ template int SSLWrap::SelectNextProtoCallback( const unsigned char* in, unsigned int inlen, void* arg); +#endif static void crypto_threadid_cb(CRYPTO_THREADID* tid) {