From 6fd6ab37dbf4f7dd19e96594161897f68466eb47 Mon Sep 17 00:00:00 2001 From: Codarren Velvindron Date: Sat, 16 Nov 2019 11:42:59 +0400 Subject: [PATCH] Add XMSS, according to RFC --- sshfp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sshfp b/sshfp index 9a95aae..05387b8 100755 --- a/sshfp +++ b/sshfp @@ -62,6 +62,8 @@ def create_sshfp(hostname, keytype, keyblob, fphash): keytype = "3" elif keytype == "ssh-ed25519": keytype = "4" + elif keytype == "ssh-xmss": + keytype = "5" else: return "" try: @@ -355,9 +357,9 @@ def main(): action="append", type="choice", dest="algo", - choices=["rsa", "dsa", "ecdsa", "ed25519"], + choices=["rsa", "dsa", "ecdsa", "ed25519", "xmss"], default=[], - help="key type to fetch (may be specified more than once, default dsa,rsa,ecdsa,ed25519)") + help="key type to fetch (may be specified more than once, default dsa,rsa,ecdsa,ed25519,xmss)") parser.add_option("-n", "--nameserver", action="store", type="string",