From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#58925: 29.0.50; url-open-stream has no option pass tls options per call Date: Mon, 31 Oct 2022 15:37:51 +0100 Message-ID: <875yg0oy80.fsf@gmail.com> References: <87pme8b4zv.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38781"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar To: 58925@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 31 15:38:28 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opVvn-0009uZ-9t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Oct 2022 15:38:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opVvR-0006iP-SO; Mon, 31 Oct 2022 10:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opVvO-0006i7-HC for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 10:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opVvO-0007Rg-7g for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 10:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opVvO-0003zX-41 for bug-gnu-emacs@gnu.org; Mon, 31 Oct 2022 10:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Oct 2022 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58925 X-GNU-PR-Package: emacs Original-Received: via spool by 58925-submit@debbugs.gnu.org id=B58925.166722708115336 (code B ref 58925); Mon, 31 Oct 2022 14:38:02 +0000 Original-Received: (at 58925) by debbugs.gnu.org; 31 Oct 2022 14:38:01 +0000 Original-Received: from localhost ([127.0.0.1]:41470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opVvN-0003zI-7V for submit@debbugs.gnu.org; Mon, 31 Oct 2022 10:38:01 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:34390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opVvK-0003z4-VW for 58925@debbugs.gnu.org; Mon, 31 Oct 2022 10:37:59 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id k8so16295405wrh.1 for <58925@debbugs.gnu.org>; Mon, 31 Oct 2022 07:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=2mUH7FUL/DUKu39a3AyTr/kOLsFsXngeYWYoEpF1Lnk=; b=fYtKPWpgf7s/CsarpaYqxH/GKIP/RGWiF2JNErRyxUDqSWhfrFqDAUkblt6s5iHV9d Cj1xQ6jQ2DC3FaNaTFlTwwWCDpi2/oSshSxJFKYdOmp29d4P5zs3jvGvssUrbjA6T+H4 tq2eoyRDdGY7fZMo6UCF0MpyReJAcC3AtA50UdVUcj0lFHmQeBfewXsl9V44MuW+MOaE 7XBu+Wrhx/Pgrf0AQaPdNYQZiSVCfgeqVMWH/q1e/UjDLFzCmyQx4qJ070VWNKrIDqwE cIzx296fe+v8zXuCGE4edpo0sVlUPqNR8z1qBBJ9Iw6JzcQyRg3Dj3oSdCcmHNwoDj37 t/+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2mUH7FUL/DUKu39a3AyTr/kOLsFsXngeYWYoEpF1Lnk=; b=NcPZvqHSdAPOmjInBGybF9xHRCZW0jZpfmTqq30ck/3HZ2JFPD+RqC/tmrzt4Nxab3 rdjQQ4w5UPfwif7pPUPQaAjLqtX4DR5qANDzL8HbzgZVjy5uva8e0TkCwt/8LWbzxQS+ pcCrn3w+9qRVCszMSjUJpKmS4K1m1DV0WiJCghE4+DP5k0N3atYocUD/lby7thdLRVLF uszQY+t+VZfof5l9XKQbM5esaxaUJzQ6WYsTQDEIa94QtV/CjdvfMvQCejLW+CuWYkbP Bhw1x5CwxuasFByV75dDYvfmcXix3zXoyLOnlxk73Rzvz8hyrVFmvVAZadnMwUoHr7UW 4brg== X-Gm-Message-State: ACrzQf0k8miktkgHw9dmUfSu9m4D1jvRn4eO6RMbcN3ouhB8tp1+UZVM dwly2UoM1EAbCz6NLmMhfDg= X-Google-Smtp-Source: AMsMyM7FKXvpd3labrikS+AfQfOvnRT4AkDeSwku9utXlNWGuOngLLELFNDu0l9pM5lJZ8wr4Ntz3g== X-Received: by 2002:adf:a45a:0:b0:236:9aa8:e675 with SMTP id e26-20020adfa45a000000b002369aa8e675mr8450085wra.407.1667227072928; Mon, 31 Oct 2022 07:37:52 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id j18-20020a5d6192000000b00228692033dcsm7277064wru.91.2022.10.31.07.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 07:37:52 -0700 (PDT) In-Reply-To: <87pme8b4zv.fsf@thaodan.de> ("=?UTF-8?Q?Bj=C3=B6rn?= Bidar via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Mon, 31 Oct 2022 13:35:16 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246694 Archived-At: >>>>> On Mon, 31 Oct 2022 13:35:16 +0200, Bj=C3=B6rn Bidar via "Bug reports= for GNU Emacs, the Swiss army knife of text editors" said: Bj=C3=B6rn> While investigating who to use magit with tls client certif= icates Bj=C3=B6rn> I noticed that url-open-stream has no option to pass option= s to Bj=C3=B6rn> network-open-stream on a per connection basis to do thing l= ike e.g. Bj=C3=B6rn> request the use of tls client certificates. Bj=C3=B6rn> If this was possible the client could be able to call url w= ith something Bj=C3=B6rn> like (url-http "https://example.com" 'my-cb gw-options) to = pass more Bj=C3=B6rn> options to the specific gateway that is used. Bj=C3=B6rn> I know it is possible to use network-stream-use-client-cert= ificates Bj=C3=B6rn> however that might be not always as elegant to use. Elegance is in the eye of the beholder :-) `network-stream-use-client-certificates' lets you configure which client certificate is used for a host via auth-source. What other options did you have in mind? Robert --=20