diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 053e6970c377cb..1956c6db318e0f 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -156,7 +156,11 @@ template int SSLWrap::SelectNextProtoCallback( unsigned int inlen, void* arg); #endif + +#ifdef NODE__HAVE_TLSEXT_STATUS_CB template int SSLWrap::TLSExtStatusCallback(SSL* s, void* arg); +#endif + template void SSLWrap::DestroySSL(); template int SSLWrap::SSLCertCallback(SSL* s, void* arg); template void SSLWrap::WaitForCertCb(CertCb cb, void* arg); @@ -2119,7 +2123,12 @@ int SSLWrap::SSLCertCallback(SSL* s, void* arg) { info->Set(env->tls_ticket_string(), Boolean::New(env->isolate(), sess->tlsext_ticklen != 0)); } - bool ocsp = s->tlsext_status_type == TLSEXT_STATUSTYPE_ocsp; + + bool ocsp = false; +#ifdef NODE__HAVE_TLSEXT_STATUS_CB + ocsp = s->tlsext_status_type == TLSEXT_STATUSTYPE_ocsp; +#endif + info->Set(env->ocsp_request_string(), Boolean::New(env->isolate(), ocsp)); Local argv[] = { info };