From: Raphael Geissert Date: Sun, 3 May 2015 18:57:10 +0000 (+0200) Subject: Authorize ed25519 keys, which have a fixed size of 256 bits X-Git-Tag: userdir-ldap-0.3.88~31^2~2 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=2fd1b80485d816389e3ade4a3388d8652cee3f83 Authorize ed25519 keys, which have a fixed size of 256 bits Signed-off-by: Peter Palfrader --- diff --git a/ud-mailgate b/ud-mailgate index 6f9b20c..aaf1e2a 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -323,7 +323,7 @@ def DoSSH(Str, Attrs, badkeys, uid): Match = SSHFingerprint.match(output) g = Match.groups() - if int(g[0]) < 1024: + if int(g[0]) < 1024 and (typekey != "ed25519"): try: # Body Subst["__ERROR__"] = "SSH keysize %s is below limit 1024" % (g[0])