summary refs log tree commit diff
path: root/synapse/rest/key
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-10-12 14:45:13 +0100
committerMark Haines <mark.haines@matrix.org>2016-10-12 14:45:13 +0100
commit0af6213019076befbe299fcaac4414045728d2b6 (patch)
tree8576d00d62bbde5a570e3ead8e84798becf00558 /synapse/rest/key
parentAdd config option for adding additional TLS fingerprints (diff)
downloadsynapse-0af6213019076befbe299fcaac4414045728d2b6.tar.xz
Improve comment formatting
Diffstat (limited to 'synapse/rest/key')
-rw-r--r--synapse/rest/key/v2/local_key_resource.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/rest/key/v2/local_key_resource.py b/synapse/rest/key/v2/local_key_resource.py
index 1cf69f3ed4..ff95269ba8 100644
--- a/synapse/rest/key/v2/local_key_resource.py
+++ b/synapse/rest/key/v2/local_key_resource.py
@@ -46,9 +46,12 @@ class LocalKey(Resource):
                     "expired_ts": # integer posix timestamp when the key expired.
                     "key": # base64 encoded NACL verification key.
                 }
-            }
-            "tls_fingerprints": # Fingerprints of the TLS certs this server uses.
-                - {"sha256": "..."}
+            },
+            "tls_fingerprints": [ # Fingerprints of the TLS certs this server uses.
+                {
+                    "sha256": # base64 encoded sha256 fingerprint of the X509 cert
+                },
+            ],
             "signatures": {
                 "this.server.example.com": {
                    "algorithm:version": # NACL signature for this server