Message ID | 20231120154731.44988-2-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBAABBF775WVAMGQEAZ6EGBA@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=XfE9QNfL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::140; helo=mail-lf1-x140.google.com; envelope-from=swupdate+bncbaabbf775wvamgqeaz6egba@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x140.google.com (mail-lf1-x140.google.com [IPv6:2a00:1450:4864:20::140]) (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 4SYsMw6yKmz1ySW for <incoming@patchwork.ozlabs.org>; Tue, 21 Nov 2023 02:47:40 +1100 (AEDT) Received: by mail-lf1-x140.google.com with SMTP id 2adb3069b0e04-5079630993dsf4132132e87.1 for <incoming@patchwork.ozlabs.org>; Mon, 20 Nov 2023 07:47:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700495257; cv=pass; d=google.com; s=arc-20160816; b=nixYQjqsL0FOdVqdeHJR1dTx/hu3AvmxTDAi8EhFHkY7X+bViVxC2hmlEKNcxPsboU CAU9lvKfOKprO1UdUx9AAg8qQn5ihKsOfFl9ZnhmMWcicFwjijGw3QVyja88FAOLJLpN QU02XNe3EmaJQIV2NbLscHbR6hOWeOIxXvSXL3T+e8R80yfuePw3H9AIl1E6Esl6tLeq oYPf7V71D70FFaZgzjBA+S5OSzLhr+33hz0rA8ZSTwKVfoH1rejfBYL77ngMzzofbMci cG+RuyGKKVfnRj/LwDxHZV3qi45CAnyx2KsDFK8k16D9fUCJoJyPoVOj5us7NYMW0Yng Z6nQ== 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=1N7sty2Dvp9n98p4Txn7dNoFoUwzoAVGa/1RuE8+8Sc=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=ic/n0pJX43GvL1kmCfe/kGml229RqBIz+Ds0Wtv3DgSZN/D/uWeG/UO3O2nqaut7le iaIVHd020U+7SObYQBpDYoJ6Ax+WlyJWFLASO5z4JHbXfG8rYudXJltZRkmnbXntJGly z23BCzkKAbggOQg3cgZbu8G2mmkrud/Nq/TztYOU1DZjM8dg4/SQzDn6kasGOMe3MbDD plqnjuKlwXWJNGJmSc5fZDempySXk2P0sv7ar/8gD7+yinJiXj8suTNVa+3gB5xtSGNo JS/GCp+cUDIFybEMdCXxeF7dHGlbIDOC1RHjtj7dgHPUE9HGm4Dx8VP4/PJwMPm08bpk 9nLQ== 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=1700495257; x=1701100057; 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=1N7sty2Dvp9n98p4Txn7dNoFoUwzoAVGa/1RuE8+8Sc=; b=XfE9QNfLsFT8TiE6ClL4EKXxpMOLVSI6v+Q5m3XcLOxZW+LGzHeP0vJ7yVW/uwxxse B9sev5IwSJb0uekkl96cq296+ekkwu0URmUmnX5Ir1brMer1/UBK7BUF3Zg6xgHIjDrv rbxVs9ENQt79D7ITTrNd9NCj63dsD6BdhKcZaWSFj8kt25cJPsG6p1cHx3pFt8Ue0RY/ k9950fWmb3JU1Tw3er869CTP3Kg035Qlx5swIHWPaf05QEQ38W7PmrBbxAUlLaPg99V7 5xx5yiKKbPNzTjtgpbQz0bH21tWGdQxFHhir4TLHrp/bnMo35OjYPJGdVH8cE3etTk4h FHcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700495257; x=1701100057; 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=1N7sty2Dvp9n98p4Txn7dNoFoUwzoAVGa/1RuE8+8Sc=; b=orDu/VmdsW+38yPkkR0yVpexW/vCOyPZlW7blzpn+blGB8hw8WkAm0tv4Yu3a1X9FO vHR/JMBeZPrdpTuq8HWSuBeCY61ATnhkXWk5lzV4wZSLjE7JkZVotP2Hd933nnkM1vJX btPZ5CUa9m3oQnont5m9JtEdkVuEZqzSVeJZKtGkU/GAkm+Et+9gH4S1WVxYs8iiYqqe iJA66+9QfdSmcXBGl/Fp+44YVfFuEUubSh9ETTw3mr+hihYraHa8TBEyN4c66lRHYj8T JXxF6jJg3+V1QFbDzKoX6ml/ycCc3zJMxWFAxsBVz6gWFy2GPyGoiutbPnao8raAJSIh Cq/w== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YwZzCtw2KE10i/WvPHSck8Me09WolRT4U8oi4nKfn13nnuwCqCK 43eUBT5oM5XuMvUBMM0atno= X-Google-Smtp-Source: AGHT+IEqF98PyXeyqxWjSHiJlnh6EBe5wBpHN4saySpj7s/hzwZxZL8+oRzGeg6Q0kbfemsKYOxZuw== X-Received: by 2002:ac2:59c2:0:b0:509:4bb0:1fb8 with SMTP id x2-20020ac259c2000000b005094bb01fb8mr5774015lfn.14.1700495256447; Mon, 20 Nov 2023 07:47:36 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ac2:4e12:0:b0:507:979a:7f48 with SMTP id e18-20020ac24e12000000b00507979a7f48ls14603lfr.1.-pod-prod-04-eu; Mon, 20 Nov 2023 07:47:34 -0800 (PST) X-Received: by 2002:ac2:455b:0:b0:4fb:9168:1fce with SMTP id j27-20020ac2455b000000b004fb91681fcemr6330056lfm.59.1700495254484; Mon, 20 Nov 2023 07:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700495254; cv=none; d=google.com; s=arc-20160816; b=YEMMZcZtEuEREc/XXzoyLUq/SUePLa0a/Pvy4tl7SS5D/o0/nmKVn9WUzKy/JsVNhp pSr5f+YjzwEmmNUYfPgwSVGVxjF1trhrDjYTwJNi0GSb1TM8jxYQwo3uVo76uQm21ZPC FvZj5tl/CI2KOGOTicNoRyY5craPe1KtjCyBGYfjOIV/jMXALgE4KzLy7D7iwm4ejH2V s7SkYkJj8TAJqNAvzaIYebrjp2d2y6Aa3OG7ZIi9C347tHgKmfUx1q1BmBOLfnJ4Jd9/ LNN5rO9DYT2y4zkwYyXt8miVY7UwL9p5ZOdoQPd5ztFrmzy9ANFW2GkZB27c72a1eNxk Gv0A== 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=QAEvqzqGYs0igiJKzxa5QWCD3RF4TW4CoisDfvolkpBjqIg904qvylUNOpbD6EkhPc 8WcUu5NpjH0BbgZO6IPOWr7vE6bOWsiPt47btX59RZpcatOqs4Y17A5gzfxFulIN3gJA mcwdlxpCDwWYUmWg4YLMd6UFlIRPfSlBRXw8Oc9XjhZuqjJKvxsexvpdFmXmSFAKMdUq iTOGMFLzaJyfD7GaOY103TlIFUMmqN0C32nIw9S3m9zwl8qj/v3WiApvtWvW7tW1Cldi 2uQCxbccFQXrzXsdPZ4KBPVloeaL/PScmVNCZMWHYAaFcsk7yfUkqWWQhqXlqZtti8eP CPLA== 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 c11-20020ac244ab000000b004ffa201cad8si304132lfm.9.2023.11.20.07.47.34 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 07:47:34 -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 1MCbMz-1rD2ak2S7H-009dlX; Mon, 20 Nov 2023 16:47:33 +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:47:23 +0100 Message-Id: <20231120154731.44988-2-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231120154731.44988-1-stefano.babic@swupdate.org> References: <20231120154731.44988-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:CblUo1IaxqQ0XrXCZWO2rbt6DGIrJ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W2V1qvkt3V7PPgDlEiCasMsLJN2UjRdZjidcMWqKLIASQnlsNg7eMlzKfO1BhUlhrOmEc MsHfwva6ldO45z/P7Zkzk+0qqiwyTN1T05Vs= 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(+)