emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deprecate TLS1.0 support in emacs


From: Robert Pluim
Subject: Re: Deprecate TLS1.0 support in emacs
Date: Wed, 12 Jul 2017 16:39:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> On Jul 12 2017, Robert Pluim <address@hidden> wrote:
>
>> @@ -231,6 +231,27 @@ nsm-check-protocol
>>           host port protocol)))
>>        (delete-process process)
>>        nil)
>> +     ((and protocol
>> +       (string-match "TLS1.0" protocol)
>> +       (not (memq :tls1.0 (plist-get settings :conditions)))
>> +       (not
>> +        (nsm-query
>> +         host port status :tls1.0
>> +         "The connection to %s:%s uses the %s protocol, which is unsafe."
>> +         host port protocol)))
>> +      (delete-process process)
>> +      nil)
>> +     ((and protocol
>> +           (eq network-security-level 'paranoid)
>> +       (string-match "TLS1.1" protocol)
>
> Why string-match?

It's what the surrounding code uses to check for ssl. You'd prefer
string-equal ?

Robert




reply via email to

[Prev in Thread] Current Thread [Next in Thread]