From: Andreas Steffen Date: Wed, 27 Jul 2022 06:51:59 +0000 (+0200) Subject: scepclient: Switched from HTTP 1.0 to HTTP 1.1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3793b1d18f4c711f37a73835d67ceb43b44811;p=thirdparty%2Fstrongswan.git scepclient: Switched from HTTP 1.0 to HTTP 1.1 --- diff --git a/src/scepclient/scep.c b/src/scepclient/scep.c index 01ae450aac..eefa980089 100644 --- a/src/scepclient/scep.c +++ b/src/scepclient/scep.c @@ -374,7 +374,6 @@ bool scep_http_request(const char *url, chunk_t msg, scep_op_t op, free(escaped_req); status = lib->fetcher->fetch(lib->fetcher, complete_url, response, - FETCH_HTTP_VERSION_1_0, FETCH_TIMEOUT, timeout, FETCH_REQUEST_HEADER, "Pragma:", FETCH_REQUEST_HEADER, "Host:", @@ -390,7 +389,6 @@ bool scep_http_request(const char *url, chunk_t msg, scep_op_t op, snprintf(complete_url, len, "%s?operation=%s", url, operation); status = lib->fetcher->fetch(lib->fetcher, complete_url, response, - FETCH_HTTP_VERSION_1_0, FETCH_TIMEOUT, timeout, FETCH_REQUEST_DATA, msg, FETCH_REQUEST_TYPE, "", @@ -416,11 +414,9 @@ bool scep_http_request(const char *url, chunk_t msg, scep_op_t op, /* form complete url */ len = strlen(url) + 32 + strlen(operation) + msg.len + 1; complete_url = malloc(len); - snprintf(complete_url, len, "%s?operation=%s&message=%.*s", - url, operation, (int)msg.len, msg.ptr); + snprintf(complete_url, len, "%s?operation=%s", url, operation); status = lib->fetcher->fetch(lib->fetcher, complete_url, response, - FETCH_HTTP_VERSION_1_0, FETCH_TIMEOUT, timeout, FETCH_SOURCEIP, srcip, FETCH_END);