@@ -67,13 +67,11 @@ WOLFSSL_LOCAL int CheckOcspResponse(WOLFSSL_OCSP *ocsp, byte *response, int resp
6767WOLFSSL_LOCAL int CheckOcspResponder (OcspResponse * bs , DecodedCert * cert ,
6868 void * vp );
6969
70- #if defined(OPENSSL_ALL ) || defined(WOLFSSL_NGINX ) || defined(WOLFSSL_HAPROXY ) || \
71- defined(WOLFSSL_APACHE_HTTPD ) || defined(HAVE_LIGHTY )
72-
73- WOLFSSL_API int wolfSSL_OCSP_resp_find_status (WOLFSSL_OCSP_BASICRESP * bs ,
74- WOLFSSL_OCSP_CERTID * id , int * status , int * reason ,
75- WOLFSSL_ASN1_TIME * * revtime , WOLFSSL_ASN1_TIME * * thisupd ,
76- WOLFSSL_ASN1_TIME * * nextupd );
70+ #ifdef OPENSSL_EXTRA
71+ WOLFSSL_API int wolfSSL_OCSP_resp_find_status (WOLFSSL_OCSP_BASICRESP * bs ,
72+ WOLFSSL_OCSP_CERTID * id , int * status , int * reason ,
73+ WOLFSSL_ASN1_TIME * * revtime , WOLFSSL_ASN1_TIME * * thisupd ,
74+ WOLFSSL_ASN1_TIME * * nextupd );
7775WOLFSSL_API const char * wolfSSL_OCSP_cert_status_str (long s );
7876WOLFSSL_API int wolfSSL_OCSP_check_validity (WOLFSSL_ASN1_TIME * thisupd ,
7977 WOLFSSL_ASN1_TIME * nextupd , long sec , long maxsec );
@@ -132,8 +130,6 @@ WOLFSSL_API int wolfSSL_OCSP_resp_count(WOLFSSL_OCSP_BASICRESP *bs);
132130WOLFSSL_API WOLFSSL_OCSP_SINGLERESP * wolfSSL_OCSP_resp_get0 (
133131 WOLFSSL_OCSP_BASICRESP * bs , int idx );
134132
135- #endif
136- #ifdef OPENSSL_EXTRA
137133WOLFSSL_API int wolfSSL_OCSP_REQUEST_add_ext (OcspRequest * req ,
138134 WOLFSSL_X509_EXTENSION * ext , int idx );
139135WOLFSSL_API OcspResponse * wolfSSL_OCSP_response_create (int status ,
@@ -148,7 +144,7 @@ WOLFSSL_API int wolfSSL_OCSP_request_add1_nonce(OcspRequest* req,
148144 unsigned char * val , int sz );
149145WOLFSSL_API int wolfSSL_OCSP_check_nonce (OcspRequest * req ,
150146 WOLFSSL_OCSP_BASICRESP * bs );
151- #endif
147+ #endif /* OPENSSL_EXTRA */
152148
153149
154150#ifdef __cplusplus
0 commit comments