Message ID | 20231120155459.45188-2-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBAABBWEC52VAMGQEC43CGHY@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=OzIa1jie; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33a; helo=mail-wm1-x33a.google.com; envelope-from=swupdate+bncbaabbwec52vamgqec43cghy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wm1-x33a.google.com (mail-wm1-x33a.google.com [IPv6:2a00:1450:4864:20::33a]) (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 4SYsXY4xFFz1ySR for <incoming@patchwork.ozlabs.org>; Tue, 21 Nov 2023 02:55:08 +1100 (AEDT) Received: by mail-wm1-x33a.google.com with SMTP id 5b1f17b1804b1-408597a1ae3sf14281415e9.0 for <incoming@patchwork.ozlabs.org>; Mon, 20 Nov 2023 07:55:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700495705; cv=pass; d=google.com; s=arc-20160816; b=buo9uFS5q0JEA6TR7hkKjh6HUr8P8qvvecCF/xBdoNZsCQGAgi1UtA//zGxzBHGy83 UzdFzpBXCl3S1rLzK5I3uGebgkP5lRnMN0bxTFQmOkmihGGs41HhGOuPyn8qW7pLzS6V qd7Y+E+s5XJeWfPBuGDkNRC+TeVRb2NW8szzg/iRXAaH7ZXyhcvk6CiuCJuqWxPuXx3g vQ9GX1cjhqpuFBT1TxSiyEjY6uVP2YbYT+T4UFVQfP4IEhXBnQZp9GD1EYpf9VVYdwQ9 LR7yio4kpYF+Il9pAmKl2BWonlx4o5MKXq5m7kecHWrcS1fiQUIyrWQAqul8rmlcLLtb Gapg== 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:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=2K7So9w+GxUaZjlvcfTyPKQRHmdQSL4U+cuCNgWBvME=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=Il8iMfCIHJI4GHpwDMoozJ0IJ/xjhtLqLXffbwFuuDLEnfN2ebTDehfa4X6/qMdEfS 9qrP5INPx1X4uCO+jTDGD4JUrSpKMrcSd6iT1pgBtSMGGwg/rFtMI5nzLUNTNTipR6ig 2yI9c1C0JJxkU0BOfWGJ2BL1c6iTCc7qMnD0wKCLv3uTMvqYaxKWDLal0TgYuK7WZdcZ I5jeyMPwuJnOf9oTSiVIS5oX3nMEIQqRDdKpOeu0blgHJ//EWXXCNz2bxwydfgDSI61A hAHQEG1eQpGX9hcHOi6C5YCSucyJAjKWa+9Ppf77Z+HU70itgty28mGUxxlrysm34dhL zo0w== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1700495705; x=1701100505; 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:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=2K7So9w+GxUaZjlvcfTyPKQRHmdQSL4U+cuCNgWBvME=; b=OzIa1jieF7c44LXZXfaQKZmxeh3y//PhDzKm9AUe33gp9YqrLtSNSTMoUJ/2L428e4 Akeogj2fEzdNvcVklnCpmEpQjDy9Pbik+DiJuWaA9QRK77gUvSG86ZJWTTF8MXxAIIyR 8eitCHpzPSq6WkO3CJwTTN3tAOazdbPWOkz8OYLc/xtiRcA7GD/tvsR1w5eJSn3Sci56 BIYj8k8xJrFitn3NqOggEFTo2KVa320H1wJUiN73JzN/chTR46v85DCguhryhID0yHMx wz6C+IeWJ3tDdH6AtSlSjlEbzEFl+fWv0lIMN1aq92Y9T6QVLE7brGrzfRBitWlyeZuf lPYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700495705; x=1701100505; 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 :ui-outboundreport: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=2K7So9w+GxUaZjlvcfTyPKQRHmdQSL4U+cuCNgWBvME=; b=M5XsnMWmqs/NRo/DzJVh9UTDotaM5x1pbv+4QBf1U3M4ISeku4R0YXrAzAPpjD69M1 evgVSZhLAV7i8Tl7FO2QuuK01vJH5N/34C5jREHOXBrkQP/IkZDZvYME9cLOsrO9WFC9 6SNlNVAnSeId0F9zFeCiqoExaJK6HmKfygkn5JSOjE2pUJRn1TmYi5iHL/y5FWW2F5nU pLmNSFHNLcXDzaVU0XovFzblCSo9ZRsbthjkKrV4kVAZwk5gPOXcMgzamTYfncREEPoA gaiHG8sECHNJhK2GVvjUd+dRWRQXYBOXq/WoRp6a8saPgGv9vQKKmO5ye17QloyFkL3s qFjQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0Yx8ocq0R8IBSD5VqXXAtvJSNVKrSbFFzZPPmCpqCAnFA3hWgOm0 tqpaea2OHffFUyFMg2ariGo= X-Google-Smtp-Source: AGHT+IEiorisbOhJgJPhzQdutHWPav7aqH8gdrPw003kUMGARJcqApOjlBokqF6mjIcaiBRmwsSQjQ== X-Received: by 2002:a05:600c:4f14:b0:406:f833:d853 with SMTP id l20-20020a05600c4f1400b00406f833d853mr5017626wmq.15.1700495705050; Mon, 20 Nov 2023 07:55:05 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:3ac6:b0:40a:4830:8045 with SMTP id d6-20020a05600c3ac600b0040a48308045ls1007475wms.1.-pod-prod-06-eu; Mon, 20 Nov 2023 07:55:02 -0800 (PST) X-Received: by 2002:a05:600c:1d28:b0:407:3630:f35 with SMTP id l40-20020a05600c1d2800b0040736300f35mr5126911wms.9.1700495702336; Mon, 20 Nov 2023 07:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495702; cv=none; d=google.com; s=arc-20160816; b=K0BlsQw2+/vs9LjJf4l1TiPXGlCTtI7xEL/rJlCdJiOte73Hwia5bom1COaY3qf6BD 5iQsIsxMIQmb1U0LsapxrJsyH3CCjqBT9Aw1q89eg0Nwe2G8ju5g7mAmt3JGDYoavxyQ NvqFtS+W0TTKEDqpEMdFtqhRE0donPqHLfI2t0MBdjmvTMRpY10Qsaa04JYebDMoVIeF KKGPGBcdB2mVib6biAOpn4cZgPGIrHyJE2ls+9tFdE/jLgQLHhEG0rwqWt5PmHDJRywm NeJ9njmCf2E7bpD+iCScpIIjORlyfefTB3yE5NpmZCVTtj6kvtLQPYV3TV3j3B6jM0Ns z0FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=YVNtL+pUJ6dYJem9s4vrppUgXXZSb3A6rNDxXFlGB8o=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=Urm7vVaTPUV2oZo7Gf3HxmbapyZoxsXfiVqv4lpTpbNt/0saTBaik0H+kqVxiQkEBo WRdvNNjSZCOiIqrc6TklrKYiD60iE4fwLssG0R8HjrJYWKwQFdqdVPhNwRVr8CqQC3Bc yTG3S/bi1K1LvMwRuGDFIuh+2vUCxUyDNAbb3lQyTlr3fmuDBMMM1iOQmgxOkTDAMvr3 HTKZ/L0nEjrUHWvZbkK6k1ebfYTnUhH65pBT+v4pwKF924vMsi0aVXueaBu/38zQf0yI ewOx/gxR9IABZiKv/mF0K3fubCBtqXNJTupKc4+IuYvIrxtdY0FGaDLaDSirWruZiANj 8meA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.75]) by gmr-mx.google.com with ESMTPS id c6-20020a05600c0a4600b0040a441dd5e1si682206wmq.1.2023.11.20.07.55.02 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) client-ip=217.72.192.75; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MAfQk-1rBkSb3iIq-00B03E; Mon, 20 Nov 2023 16:55:01 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 01/13] curl: add support for Unix Domain Socket Date: Mon, 20 Nov 2023 16:54:47 +0100 Message-Id: <20231120155459.45188-2-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120155459.45188-1-stefano.babic@swupdate.org> References: <20231120155459.45188-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:wvpQW6c7eGi/6+I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LR2Qy//xr VZsrA8HGrMz2jVPZaTbXRgtiQcfMq7mOJUOMSDyv7fDOCZ/+U9DzPjFacHMwvl3fRTbrpWYMW syOOp6giSNImyRrBBE0O6bBWEXlsxmKaP0Qk= X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.75 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org 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 |
Native Docker Support
|
expand
|
diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c index c411aa8a..8ab0eca3 100644 --- a/corelib/channel_curl.c +++ b/corelib/channel_curl.c @@ -605,6 +605,16 @@ channel_op_res_t channel_set_options(channel_t *this, channel_data_t *channel_da goto cleanup; } + /* + * If connection is via unix socket, set it + */ + if (channel_data->unix_socket && + (curl_easy_setopt(channel_curl->handle, CURLOPT_UNIX_SOCKET_PATH, + channel_data->unix_socket) != CURLE_OK)) { + result = CHANNEL_EINIT; + goto cleanup; + } + /* Check if sslkey or sslcert strings contains a pkcs11 URI * and set curl engine and types accordingly */ diff --git a/include/channel_curl.h b/include/channel_curl.h index 643082b1..1eefbb1c 100644 --- a/include/channel_curl.h +++ b/include/channel_curl.h @@ -36,6 +36,7 @@ typedef enum { typedef struct { char *url; + char *unix_socket; char *cached_file; char *auth; char *request_body;
Set configuration for communication via Unix Domain Socket (UDS). This can be used for many communications running locally on the target device. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- corelib/channel_curl.c | 10 ++++++++++ include/channel_curl.h | 1 + 2 files changed, 11 insertions(+)