From b36d585335fd35dec6bddf8525ada50207e2a2b1 Mon Sep 17 00:00:00 2001 From: John Bland Date: Wed, 21 Dec 2022 13:01:58 -0500 Subject: [PATCH] remove http header length check for CRL verification --- src/wolfio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wolfio.c b/src/wolfio.c index 9bea3a696..cedbe8e5f 100644 --- a/src/wolfio.c +++ b/src/wolfio.c @@ -1529,12 +1529,6 @@ int wolfIO_HttpProcessResponse(int sfd, const char** appStrList, case phr_http_start: case phr_have_length: case phr_have_type: - if (XSTRLEN(start) < 13) { /* 13 is the shortest of the following - next lines we're checking for. */ - WOLFSSL_MSG("wolfIO_HttpProcessResponse content type is too short."); - return HTTP_VERSION_ERR; - } - if (XSTRNCASECMP(start, "Content-Type:", 13) == 0) { int i;