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.devel Subject: Re: ALPN support for GnuTLS connections Date: Fri, 11 Oct 2024 09:32:31 +0200 Message-ID: <871q0numb4.fsf@gmail.com> References: <7f11f60c-37da-4123-ae5b-98c79a132bb1@risk-engineering.org> <87zfnp1oqa.fsf@gmail.com> <3b0509fe-5a30-4e2a-a9fa-c196d79c81d4@risk-engineering.org> <87ttdx1dzy.fsf@gmail.com> <874j5o1fwe.fsf@gmail.com> <877cagukpe.fsf@gmail.com> <86h69k0vx0.fsf@gnu.org> 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="15021"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eric.marsden@risk-engineering.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 11 09:33:38 2024 Return-path: Envelope-to: ged-emacs-devel@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 1szA9Y-0003ei-LW for ged-emacs-devel@m.gmane-mx.org; Fri, 11 Oct 2024 09:33:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szA8d-0002Ln-Oo; Fri, 11 Oct 2024 03:32:40 -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 1szA8c-0002Lb-4P for emacs-devel@gnu.org; Fri, 11 Oct 2024 03:32:38 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szA8a-0006ne-IP; Fri, 11 Oct 2024 03:32:37 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4305413aec9so15633025e9.2; Fri, 11 Oct 2024 00:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728631954; x=1729236754; darn=gnu.org; 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=3PyVZUiWMqqbOylKI8ytA0zInB5Y3J/AuZ+mXp6gZC0=; b=mRIvjJ2JCKzEqDfKntWrcUZYG98qoy5kkIXd0CQgMJQf55oA8rxp6MGnzLN2qZ4XeR PVuN/KU/UR2Jlh0eojsClF4WUu8WrOBbtUebU4L39PY6qHAz8/xhhs0X7VtsiMHACjqV t5hiBF7OV4P3GGGfMPH+Z7MjbcoiHP+PR4qICODPQO7MU32rKIgqOWgdT8CEylJjeuud H48HnF/4jSmFaQytrkRFhf4gQ5i9hKF6NTBQfFk2pKJpXlKApOtEkbADvH7FY2sPKULI UhmSpkEptzhOWb+alTZVismliss7JYRyiyHPlQ4e4FFirGbYV2aDk44OeJra4d5sIBw0 xW3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728631954; x=1729236754; 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=3PyVZUiWMqqbOylKI8ytA0zInB5Y3J/AuZ+mXp6gZC0=; b=F9B5o7bBuA3bEbGezOpYLm6oj9cF3y9BkqFlB6zHP/W4YQn+Aeend7g+qCp4oeoOgQ leyWoeZGcOSWkCQidcZD5iukP2C8Cya0nje3JNJE00Gc5EgHsOgcmMpLOIM12BMIE5pS uQBShm5KLN2W3OjuYMpGkoOfgem/3cC5JnNP3zQh5FIDC0PWCicTM9uWecDcPSB4qBDu pErrWcZLgUTkHPCLHJqy2EjaTNv5BPmzCpZ6M1RNlcc3Ekww1v/GoilN8d2V9EajAew/ iroHFh2NXmvF3aWUZrZQEMZLfRTtl/fEN6lZ+ads4dyUsPuvK/sHCkXLfqs6/eT+tZkK RUQg== X-Forwarded-Encrypted: i=1; AJvYcCWr7RjagAJepmUUoHn3+g/kYYdIgedfkt8qD++oxCWVGF7Iw316ZAUWZeJnhoEOwlcUHWO0RKZWkCOxSQ==@gnu.org X-Gm-Message-State: AOJu0YyQufpbKLOOuKG59ITsBJPhU82ErpC9DZD/SEAKuB2PyGeqVHnl GAymLIO3nK7b9F5ZjCeCRd64EDfqN+o+NU7s4robpZAtF3GGRfLufB2aRw== X-Google-Smtp-Source: AGHT+IGjG1iL/JN9x0AvTMJhIIm6Ro9c6HpsabsJihsfdVDMssOH9XwhyZXouS8PCKvLYvPyXi4YMg== X-Received: by 2002:a05:600c:3b28:b0:42c:b905:2bf9 with SMTP id 5b1f17b1804b1-4311dee74dbmr13691795e9.16.1728631953793; Fri, 11 Oct 2024 00:32:33 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:be4d:4433:9c35:492]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-430d748f0a5sm67108295e9.48.2024.10.11.00.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 00:32:33 -0700 (PDT) In-Reply-To: <86h69k0vx0.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2024 19:23:07 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324496 Archived-At: >>>>> On Thu, 10 Oct 2024 19:23:07 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: emacs-devel@gnu.org >> Date: Thu, 10 Oct 2024 15:54:53 +0200 >>=20 >> Patch below. Works in my limited testing. Eli> Thanks, but I think it will fail to link on MS-Windows, because you Eli> didn't say the magic words to load gnutls_alpn_set_protocols from = the Eli> library and call the function through a function pointer. Right. I=CA=BCll copy the appropriate boiler-plate. Eli> Also, what about calling this out in NEWS? Once it works, yes :-) Robert --=20