Patchwork [08,of,10,v2] config: remove unused hostsecurity.disabletls10warning config

login
register
mail settings
Submitter Manuel Jacob
Date May 30, 2020, 10:37 p.m.
Message ID <08796924bd51030b4334.1590878241@tmp>
Download mbox | patch
Permalink /patch/46428/
State New
Headers show

Comments

Manuel Jacob - May 30, 2020, 10:37 p.m.
# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1590877849 -7200
#      Sun May 31 00:30:49 2020 +0200
# Node ID 08796924bd51030b433408c755b1bd28d38393e8
# Parent  10a6978ae2f7de160e1468e5c434421ada5f3567
# EXP-Topic require_modern_ssl
config: remove unused hostsecurity.disabletls10warning config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -808,9 +808,6 @@  coreconfigitem(
     b'hostsecurity', b'ciphers', default=None,
 )
 coreconfigitem(
-    b'hostsecurity', b'disabletls10warning', default=False,
-)
-coreconfigitem(
     b'hostsecurity', b'minimumprotocol', default=dynamicdefault,
 )
 coreconfigitem(
diff --git a/tests/test-https.t b/tests/test-https.t
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -268,12 +268,6 @@  Test server cert which no longer is vali
   abort: error: *certificate verify failed* (glob)
   [255]
 
-Disabling the TLS 1.0 warning works
-  $ hg -R copy-pull id https://localhost:$HGPORT/ \
-  > --config hostsecurity.localhost:fingerprints=sha1:ecd87cd6b386d04fc1b8b41c9d8f5e168eef1c03 \
-  > --config hostsecurity.disabletls10warning=true
-  5fed3813f7f5
-
 Setting ciphers to an invalid value aborts
   $ P="$CERTSDIR" hg --config hostsecurity.ciphers=invalid -R copy-pull id https://localhost:$HGPORT/
   abort: could not set ciphers: No cipher can be selected.