Message ID | 20240615191941.40301-13-Michael.Glembotzki@iris-sensing.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBDY5JUXLVIEBB6WSW6ZQMGQEBIDZFZY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=Jmy/ZRKx; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PiK6jPVs; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33b; helo=mail-wm1-x33b.google.com; envelope-from=swupdate+bncbdy5juxlviebb6wsw6zqmgqebidzfzy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wm1-x33b.google.com (mail-wm1-x33b.google.com [IPv6:2a00:1450:4864:20::33b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W1mFW4T12z20fR for <incoming@patchwork.ozlabs.org>; Sun, 16 Jun 2024 05:20:31 +1000 (AEST) Received: by mail-wm1-x33b.google.com with SMTP id 5b1f17b1804b1-42120e033e2sf18034095e9.0 for <incoming@patchwork.ozlabs.org>; Sat, 15 Jun 2024 12:20:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718479228; cv=pass; d=google.com; s=arc-20160816; b=0mxZe1dutTBEwmkB/4LFeMQC6P+NTDj/09io7X+p02r9+VpaWCpHtjbINOEYJei40r Cb1N26W/YY+ZjMSNxjgPbo6KFswWZlsjo35m5CEuFdK61+iYjLdLHRcuhd/G7zlOazww 7+besxGj549Cz6/x912LtSoBw8ZQHl0XpZa+qDGLV6Yinu7Om2CpO0KBJhPK/vbZpxnY ElWgqkbCVXcBO6FPyfsvuQLNBhiq3PlidZZdtgYoDaSqfpACBW23MC8BvWhRoQwaHGXx +mkLXvdwwFHQjtcIDHRJLCwgmjns/pNX3qBKCg4xEZ2PfyN76pvEzt9q+vwKL/5rL4OD v3iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature :dkim-signature; bh=kVMmoUQB7vf4A11gjZLnZSm1zDqM9FJ3ZCGKsCoveYY=; fh=9BvmdHxfmtgWhlPPswO4wNBjZYjGQVms35Ii3qtQH4I=; b=cdkXrG74+4u9YhHYpI7YZyFkkKjPqhrEjOoNM9r8+QUwvccYdCrAL0BYWMznKAe2ex swaKwHIvwHWgVFGxt8KW3tw7a+CR6ZCLHswWbA1H8ZSRbzYQkQ7pjbz20gO2PuZO6A6/ JasCpQ+5dsvD+gAcSvOrns41FOoIL+MxDTFhGJ7Qa9miWR7a3gkXr5HpsjXy7tG45Atj hrIrkINkWLSTd89MyQr2RTgYCQVPztVPXKb0jmlhOMEFLoHxtVLi/WrEWYLVfCrr7O5D qsfyeKIC6+mXZup2rMCvmuAgL8wj+sX6SSHAa5LElj6QbEmRos4Jr8oIRl/S2ooxIUHM cv8w==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BLQ86GrD; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1718479228; x=1719084028; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=kVMmoUQB7vf4A11gjZLnZSm1zDqM9FJ3ZCGKsCoveYY=; b=Jmy/ZRKxqxMoxzL+ZzLQvku4X94boAsmDUZ7K3ST3Yl29AeE4JfIV1ST1/x1WV92cr efWlj+q37Yh3RA+osFLW0ygBVc+Ff1oLjrchTCGxkNotkhgXv5jaL8oSaXiRja3LcQ4N xaEE+UVgDtcId0p+ex2e++LAL7JQy8HLx3GwPO6CJpU1jyn1LaG5Z2kBGKt2DWlILoMF KzAKY+Uejjz1ta1ML+qIzYtpjnOru/5A5POzGFZZsoyRv7XrfNWylDkxoUYdpHoJuwsJ OqfzDosnW99u8FcAwktPOP0ROwtgO+YIsKfQmCLGMoy9nBCCpfytfCHOy55kQcaSSDDo OGOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718479228; x=1719084028; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=kVMmoUQB7vf4A11gjZLnZSm1zDqM9FJ3ZCGKsCoveYY=; b=PiK6jPVsRr19OmLAWRkaASFwSTrp6MW2V7ARfrfJ5LnRtRq3AHB42QO7tRombFnbYx nrxVE9uIZpbHyUu2CsYbmoq8L/kwjbbBkqhtLR10uhbpLGN/89Bm1nMSf//D2iiTyXS4 /5QCD2vRztVMmtK84BkGFmzzoimMIZzYH1n+Mg4srtwZHLqCCcYIzMd6vJ5uEvQls0VW aUvzP3wwR8ar/qYzVNXkHlfcXJ/D1NElNoyGYOYwKsN4zDTAsLJtzXlRtyRPKnb9DwyR BVxRT7pXfn3wyT6OeFKMNyP2BksC6vDNZkn+f6MNOie0Zudwkpazhkw6nfARfB3rZnGX OW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718479228; x=1719084028; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=kVMmoUQB7vf4A11gjZLnZSm1zDqM9FJ3ZCGKsCoveYY=; b=dNe8WBMG2wJFVLjB2ITQZZP7UkOjPhIld8i3NZu48fGpRjqVSEJJ86YXw+rdWHtMVS 8j0Zgd94CuLt3SM/uR3qJ1fnjD2i8s/2G/Qf2U8wvB1DXN5PokfcT0H1zXeV/MZ3vsxp +wS+JS32RLet7+K/MTRlNN0h5SpkRBHqYlyaKiyhz9Hq3+q7cUJuRgiL5xRcqbnCkAPJ Es1F8rWuSC5hyi+JF3N6GDkMQrSk3ns6NTNeUTAJvXfyFJYhKGm7rucRRDSce49PfZTN GGds4+CEOFnztfYHr6lKkcwEGTbgJgrXfuMpCpnWNn2A8R9jFKVIBBFMRmFBLvLmI48L CO+g== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCW03cZEFvc1/LVsiu7kDWFkNccpC16iSmBYPcjYZZQuOqLHGiNcnW4s6RSKpS8J+R2vRlZubTyvO+vxz1Yb92NyUgu5Qfu2YPJayO5XZA== X-Gm-Message-State: AOJu0Yzy/uLsvc+k7hXaraTfDhUOiOmgMSxMir5yQI4VWMG5BVf618L4 cDqU0BiN1ETZWi0LVRj3cwY6W0GTFGuqo8ZxVfl2VbvpCHkL6Et+ X-Google-Smtp-Source: AGHT+IEWkxOB5YPnrUCKWs4lm9nBg7Jjw/o+KOPCWuE94p5zuofav8lt4X6Vnet9/0VIc1k5yzX6mg== X-Received: by 2002:a05:600c:3b1f:b0:421:bf9f:a163 with SMTP id 5b1f17b1804b1-42305f8ccf3mr50537085e9.4.1718479227296; Sat, 15 Jun 2024 12:20:27 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:1c97:b0:421:7f30:7cf9 with SMTP id 5b1f17b1804b1-422b8da9b51ls11970445e9.2.-pod-prod-08-eu; Sat, 15 Jun 2024 12:20:25 -0700 (PDT) X-Received: by 2002:a05:600c:4383:b0:41b:60ae:7827 with SMTP id 5b1f17b1804b1-42304828ed3mr45847805e9.24.1718479224762; Sat, 15 Jun 2024 12:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718479224; cv=none; d=google.com; s=arc-20160816; b=QBCOykBtvTOZADE51zw3/jzcAjrOcOfuq7Ieh33HFmbKnTyYiDT4FonFJ0aju1t+gU bZzNUoB/y0FU8EHVFsEs1A9euiy8iarFAYlWCe1fdEhxG4E3cU5H3KHCkL52ywImL7Ev 4ECGqbNufMO5gOtyEDM0OrkKfPANRHSTx1PHJvNmbqUktzt3gQ/Ut0QSFSATgoY4vQHG ZRhbyheVZzyDnYwUgooOAqHeM7m4+mq6nr+IzMUEwrRdQr41CELHVvH3ErZ55kPujzuX cq4V0HbJ16aAazziHnIxJpDqtafSrqTLDSifFdpgZsr59vH4DLtHy2GFQDVHsoqG+cFu UEvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zURJ9QNvjX7Gbs+fvJD5WocbwFFZc8zLGKoNuGuj2Ow=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=Cf2GrgGZSLeXpzJLnhJB2sNZfoI780R9vwDamU1OTiAUM5epOnQUP6PhPeauWoAzRb MXzo/J4SmN9D13N4Gh6PFaIFHMX8NtIJAkHLz+MG6KmvK9vJ8ufYWGTf2IO6coNGqehz JB+Xx0tZFZBfK9F1tv6H/cfSIMAAiuCVVAIcBhBhLo77Fk7cENAl4mJRetSl0XES3zPu Qx2PzV5WoTPTgQPKvRVe83C1L0eb/H+mOAMi22+/qs+w9vVH7lSdkbshJ6HiWxbTDr3b FKEyDKni0x7VhJQXw6kF/LNrJgI0hTWx0U/gWYVjIWH1NT3vL2Xb/17rFP00IZc4jzH+ Eiiw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BLQ86GrD; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com. [2a00:1450:4864:20::630]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-42284b090dfsi6260155e9.0.2024.06.15.12.20.24 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Jun 2024 12:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) client-ip=2a00:1450:4864:20::630; Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a6f04afcce1so410979266b.2 for <swupdate@googlegroups.com>; Sat, 15 Jun 2024 12:20:24 -0700 (PDT) X-Received: by 2002:a17:907:a096:b0:a6f:796d:c741 with SMTP id a640c23a62f3a-a6f796dc83cmr141013466b.10.1718479224043; Sat, 15 Jun 2024 12:20:24 -0700 (PDT) Received: from PC-2635.irisgmbh.local ([2a02:8108:96c0:76fc::80bb]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db61e0sm327283766b.49.2024.06.15.12.20.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 12:20:23 -0700 (PDT) From: Michael Glembotzki <m.glembo@gmail.com> To: swupdate@googlegroups.com Cc: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> Subject: [swupdate] [PATCH 12/21] mongoose: Replace deprecated static mg_ncasecmp() with strncmp() Date: Sat, 15 Jun 2024 21:11:25 +0200 Message-ID: <20240615191941.40301-13-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> References: <20240615191941.40301-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BLQ86GrD; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Update Mongoose to 7.14
|
expand
|
diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c index 21b2bf9c..5a4e98fd 100644 --- a/mongoose/mongoose_interface.c +++ b/mongoose/mongoose_interface.c @@ -236,7 +236,7 @@ static int mg_check_digest_auth(struct mg_str method, struct mg_str uri, mg_vcmp(&auth_domain, f_domain) == 0) { /* Username and domain matched, check the password */ mg_mkmd5resp(method, uri, mg_str_s(f_ha1), nonce, nc, cnonce, qop, exp_resp); - return mg_ncasecmp(response.buf, exp_resp, strlen(exp_resp)) == 0; + return strncmp(response.buf, exp_resp, strlen(exp_resp)) == 0; } } diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c index 6db59aff..b60de2e1 100644 --- a/mongoose/mongoose_multipart.c +++ b/mongoose/mongoose_multipart.c @@ -203,7 +203,7 @@ static int mg_http_multipart_process_boundary(struct mg_connection *c) { (line_len = mg_get_line_len(block_begin, data_size)) != 0) { mp_stream->len -= (line_len + 2); if (line_len > sizeof(CONTENT_DISPOSITION) && - mg_ncasecmp(block_begin, CONTENT_DISPOSITION, + strncmp(block_begin, CONTENT_DISPOSITION, sizeof(CONTENT_DISPOSITION) - 1) == 0) { struct mg_str header; @@ -219,7 +219,7 @@ static int mg_http_multipart_process_boundary(struct mg_connection *c) { continue; } - if (line_len == 2 && mg_ncasecmp(block_begin, "\r\n", 2) == 0) { + if (line_len == 2 && strncmp(block_begin, "\r\n", 2) == 0) { if (mp_stream->processing_part != 0) { mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_END, NULL, 0); }
mongoose rev-id: b46bee0540c83c780ae9622ef18b9cc8a7b3ebab Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> --- mongoose/mongoose_interface.c | 2 +- mongoose/mongoose_multipart.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)