Skip to content

Commit

Permalink
Use -1 to disable key algorithm type in ssh.minimum_key_sizes (go-git…
Browse files Browse the repository at this point in the history
…ea#11635)

Fix go-gitea#11634

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath authored and Yohann Delafollye committed Jul 31, 2020
1 parent 3f7272f commit ee1d1a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ func NewContext() {
for _, key := range minimumKeySizes {
if key.MustInt() != -1 {
SSH.MinimumKeySizes[strings.ToLower(key.Name())] = key.MustInt()
} else {
delete(SSH.MinimumKeySizes, strings.ToLower(key.Name()))
}
}
SSH.AuthorizedKeysBackup = sec.Key("SSH_AUTHORIZED_KEYS_BACKUP").MustBool(true)
Expand Down

0 comments on commit ee1d1a7

Please sign in to comment.