mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
Reserve all keytypes starting with "ssh-" in an accounts file, rather than only "ssh-rsa" and "ssh-dsa".
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
6194ab93be
commit
0e9f0da51f
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user