Patchwork [2,of,2,V2] help: clarify that colons are allowed in fingerprints values

login
register
mail settings
Submitter Gregory Szorc
Date May 13, 2017, 8:55 p.m.
Message ID <554e2cd5198b5062ebbe.1494708953@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/20614/
State Accepted
Headers show

Comments

Gregory Szorc - May 13, 2017, 8:55 p.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1494486152 25200
#      Thu May 11 00:02:32 2017 -0700
# Node ID 554e2cd5198b5062ebbe654c75e9e96b5fde5d44
# Parent  fcb7658858b54bc9c74079d0721ff9132198e3ba
help: clarify that colons are allowed in fingerprints values

This was suggested by Lars Rohwedder in issue5559.

Patch

diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -1132,6 +1132,7 @@  The following per-host settings can be d
     A list of hashes of the DER encoded peer/remote certificate. Values have
     the form ``algorithm``:``fingerprint``. e.g.
     ``sha256:c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2``.
+    In addition, colons (``:``) can appear in the fingerprint part.
 
     The following algorithms/prefixes are supported: ``sha1``, ``sha256``,
     ``sha512``.
@@ -1181,6 +1182,7 @@  For example::
     [hostsecurity]
     hg.example.com:fingerprints = sha256:c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2
     hg2.example.com:fingerprints = sha1:914f1aff87249c09b6859b88b1906d30756491ca, sha1:fc:e2:8d:d9:51:cd:cb:c1:4d:18:6b:b7:44:8d:49:72:57:e6:cd:33
+    hg3.example.com:fingerprints = sha256:9a:b0:dc:e2:75:ad:8a:b7:84:58:e5:1f:07:32:f1:87:e6:bd:24:22:af:b7:ce:8e:9c:b4:10:cf:b9:f4:0e:d2
     foo.example.com:verifycertsfile = /etc/ssl/trusted-ca-certs.pem
 
 To change the default minimum protocol version to TLS 1.2 but to allow TLS 1.1