From: Robert Pluim <rpluim@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: gnutls-protocol-version<
Date: Tue, 03 Sep 2019 16:37:58 +0200 [thread overview]
Message-ID: <m28sr5qwc9.fsf@gmail.com> (raw)
In-Reply-To: <c04d6664-2b2b-fd32-2612-c2f98c4ddf99@cs.ucla.edu> (Paul Eggert's message of "Tue, 3 Sep 2019 06:02:45 -0700")
>>>>> On Tue, 3 Sep 2019 06:02:45 -0700, Paul Eggert <eggert@cs.ucla.edu> said:
Paul> Robert Pluim wrote:
>> (gnutls-protocol-version< V1 V2)
>> Return t if TLS protocol version V1 is lower than V2.
Paul> Alternatively you could get the TLS protocol version as a
Paul> string, and
Thatʼs already available via gnutls-peer-status
Paul> use string-version-lessp; that might be simpler.
That works, although it does assume that TLS version strings won't do
anything silly in the future like change prefix (they have done in the
past from SSL -> TLS, but S<T so thatʼs OK).
One nit is this:
(string-version-lessp "TLS1.3" nil) => t
which is somewhat surprising, but doesnʼt matter for my use case.
Robert
prev parent reply other threads:[~2019-09-03 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-03 12:13 gnutls-protocol-version< Robert Pluim
2019-09-03 13:02 ` gnutls-protocol-version< Paul Eggert
2019-09-03 14:37 ` Robert Pluim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28sr5qwc9.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.