]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Reserve all keytypes starting with "ssh-" in an accounts file, rather than only ...
authorDaira Hopwood <daira@jacaranda.org>
Tue, 6 Jan 2015 19:09:04 +0000 (19:09 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 6 Jan 2015 19:09:04 +0000 (19:09 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/auth.py

index 4a874d8d719dedef772714613f04b66ec171c3b4..fa7fd379405bada9ad376623674f905c8b39792c 100644 (file)
@@ -33,7 +33,7 @@ class AccountFileChecker:
             if line.startswith("#") or not line:
                 continue
             name, passwd, rest = line.split(None, 2)
-            if passwd in ("ssh-dss", "ssh-rsa"):
+            if passwd.startswith("ssh-"):
                 bits = rest.split()
                 keystring = " ".join([passwd] + bits[:-1])
                 rootcap = bits[-1]