HAVE_HTTP_CLIENT is disabled if WOLFSSL_USER_IO is defined in wolfsssl/wolfio.h

This commit is contained in:
Go Hosohara
2018-07-23 12:26:51 +09:00
parent 93e1221894
commit c3abb6c0cd

View File

@ -30,10 +30,13 @@
extern "C" { extern "C" {
#endif #endif
/* OCSP and CRL_IO require HTTP client */ /* Micrium uses NetSock I/O callbacks in wolfio.c */
#if defined(HAVE_OCSP) || defined(HAVE_CRL_IO) #if !defined(WOLFSSL_USER_IO)
#ifndef HAVE_HTTP_CLIENT /* OCSP and CRL_IO require HTTP client */
#define HAVE_HTTP_CLIENT #if defined(HAVE_OCSP) || defined(HAVE_CRL_IO)
#ifndef HAVE_HTTP_CLIENT
#define HAVE_HTTP_CLIENT
#endif
#endif #endif
#endif #endif