diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 0d88828bec1885..6cb79aa4b978bd 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); @@ -2263,7 +2267,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 };