From c3abb6c0cd5fa8abcad294c067ca774f2ccf65b3 Mon Sep 17 00:00:00 2001 From: Go Hosohara Date: Mon, 23 Jul 2018 12:26:51 +0900 Subject: [PATCH] HAVE_HTTP_CLIENT is disabled if WOLFSSL_USER_IO is defined in wolfsssl/wolfio.h --- wolfssl/wolfio.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wolfssl/wolfio.h b/wolfssl/wolfio.h index 3e1596f1c..2e810753a 100644 --- a/wolfssl/wolfio.h +++ b/wolfssl/wolfio.h @@ -30,10 +30,13 @@ extern "C" { #endif -/* OCSP and CRL_IO require HTTP client */ -#if defined(HAVE_OCSP) || defined(HAVE_CRL_IO) - #ifndef HAVE_HTTP_CLIENT - #define HAVE_HTTP_CLIENT +/* Micrium uses NetSock I/O callbacks in wolfio.c */ +#if !defined(WOLFSSL_USER_IO) + /* OCSP and CRL_IO require HTTP client */ + #if defined(HAVE_OCSP) || defined(HAVE_CRL_IO) + #ifndef HAVE_HTTP_CLIENT + #define HAVE_HTTP_CLIENT + #endif #endif #endif