From 2de06106c2dd6cc8a842ddb27eaf2957a5e4b185 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Wed, 18 Apr 2018 09:30:55 -0500 Subject: [PATCH] Add missing preprocessor guard around mbedtls_x509_ocsp_response_parse_file() --- library/x509_ocsp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/x509_ocsp.c b/library/x509_ocsp.c index c82537b8ac..1bc3ce72c5 100644 --- a/library/x509_ocsp.c +++ b/library/x509_ocsp.c @@ -2228,6 +2228,7 @@ int mbedtls_x509_ocsp_response_verify_info( char *buf, size_t size, x509_ocsp_response_verify_strings ) ); } +#if defined(MBEDTLS_FS_IO) int mbedtls_x509_ocsp_response_parse_file( mbedtls_x509_ocsp_response *resp, const char *path ) { @@ -2245,4 +2246,6 @@ int mbedtls_x509_ocsp_response_parse_file( mbedtls_x509_ocsp_response *resp, return( ret ); } +#endif /* MBEDTLS_FS_IO */ + #endif /* MBEDTLS_X509_OCSP_PARSE_C */