From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: gnutls-protocol-version< Date: Tue, 03 Sep 2019 14:13:55 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="79999"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 03 14:14:46 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i57hr-000Kcb-1o for ged-emacs-devel@m.gmane.org; Tue, 03 Sep 2019 14:14:43 +0200 Original-Received: from localhost ([::1]:45092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57hp-000392-R5 for ged-emacs-devel@m.gmane.org; Tue, 03 Sep 2019 08:14:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59998) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i57hH-00038Y-ON for emacs-devel@gnu.org; Tue, 03 Sep 2019 08:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i57hG-0002Nw-Q8 for emacs-devel@gnu.org; Tue, 03 Sep 2019 08:14:07 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:50970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i57hG-0002NA-KV for emacs-devel@gnu.org; Tue, 03 Sep 2019 08:14:06 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id c10so5981964wmc.0 for ; Tue, 03 Sep 2019 05:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:mail-copies-to:gmane-reply-to-list:date:message-id :mime-version:content-transfer-encoding; bh=v5sH1Mpp1l4gV2WmSZjlKZKmtwIRPtSisYx794SvtxA=; b=E8HYmp5h3KLDT5jxEcTgCfa/mAqeH44yYhAF3XQSaFTFH9jP13EI5gtz66Dpk7rOHb G4yAFy9srWXYBxlmOe2nFhaD+BP2bHCWfB1g3OH0sgh45wrGHR+qqbMHDV0jtykbFgUH FKe9hrTfQU1Cd2C4YDfAYlKB2seb3Yptitiq/JNHDBEycZsDB/rKeqKE+OlyHGZnJAAn UBsn9PW7bILW3A4Gdt+URCU2AnVWBv4CV3viI5rTAmvwQhl3u2R8uQfiGDghrdxrEWpI O3Ngi0JW02m32JvQECDgCFruRr5XNXzPodn7MFupCpiz32bJ6vP7eWMKu7u9xbeGnDV0 Eghg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mail-copies-to :gmane-reply-to-list:date:message-id:mime-version :content-transfer-encoding; bh=v5sH1Mpp1l4gV2WmSZjlKZKmtwIRPtSisYx794SvtxA=; b=OrrmghnCZTpn28kFDMVAE0g9iq1PoB+p+kstLpGqmOQAF+UJlkcntbWjMs2/lzPQDb 4STpe/FqasbhiExciDqqIOtQWnEE7JLwEF0jnYW9JE4rb/URfIn7kkP5DqjQF0hO5CxN 6orlhhAzSbkbrUMtpWPKs6bCef+th2HorOSKixLLoYN7ZgXHDvv7QqCxf9+KuOLIbJnb yrg/hX8J5DJrQpcW/Kj+6VTrqUKQtJNJCzfUerhULWil5bq1EpVVVckwvlKSGa8K+6A6 orlH9niJ1ro2XU5XToHGDWSSb7FOFDGq26rwiBIGYgyDFDxh4Hpdos7HuTnUNt52q1H8 ZEwQ== X-Gm-Message-State: APjAAAVhzqyILlYlMommAON/TkcJG68UGZVT5+d1wqmhhou8c4TwbzAP p3UTd7FT3eATxjTwcjhh4uZ53ezu X-Google-Smtp-Source: APXvYqyaaw2vdqoFw2uMMgX7MGDmAx2zpRmodxoaeSanwx/X93DTHiFUAKJebBgH5JWq2F2LuN3uXw== X-Received: by 2002:a7b:c8cb:: with SMTP id f11mr42604364wml.138.1567512844879; Tue, 03 Sep 2019 05:14:04 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id j9sm16718748wrx.66.2019.09.03.05.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 05:14:03 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::334 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239805 Archived-At: Hi, since in some cases nsm has to behave differently depending on what version of TLS was negotiated for a connection, it needs to be possible to compare TLS protocol versions. I was thinking of adding something like: gnutls-protocol-version< is a built-in function in =E2=80=98C source co= de=E2=80=99. (gnutls-protocol-version< V1 V2) Return t if TLS protocol version V1 is lower than V2. V1 and V2 are TLS protocol version names in the form used by GnuTLS, e.g. "TLS1.3". I don=CA=BCt think we need the '>' version, and for equality you can just use 'string-equal'. Thoughts? Robert