]> source.dussan.org Git - gitea.git/commit
don't check minimum key size when disabled (#1754)
authorGibheer <gibheer+github@zero-knowledge.org>
Thu, 26 Oct 2017 01:49:41 +0000 (03:49 +0200)
committerLunny Xiao <xiaolunwen@gmail.com>
Thu, 26 Oct 2017 01:49:41 +0000 (09:49 +0800)
commitbc8411098979da5599d314e982da2985e0bb29c2
tree4a61bfa3a31a42baa78180ad2c86ddab167a0367
parenteca05b09aa269dda1309ee77ac750e29e71c3fd3
don't check minimum key size when disabled (#1754)

* cleanup old comments for ed25519

These comments were added when x/crypto/ed25519 could not yet handle
ed25519. It does now, so it should be removed.
Also the key type is now replaced with the proper constant.

* move the minimum key size config before the check

This moves the actual config lookup before any check is done. This
avoids problems with calling to ssh-keygen which doesn't support the
expected output format and returning an error, when the check is disabled.
models/ssh_key.go