Replace unsupported hashes with supported
Remote md5 and sha1 hashes which are not supported by distribution. Add more secure hashes sha384 and sha512. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
c1840978b7
commit
2289b1f2e8
3 changed files with 10 additions and 11 deletions
|
@ -123,7 +123,7 @@ func (d Digest) Validate() error {
|
|||
}
|
||||
|
||||
switch s[:i] {
|
||||
case "md5", "sha1", "sha256":
|
||||
case "sha256", "sha384", "sha512":
|
||||
break
|
||||
default:
|
||||
return ErrDigestUnsupported
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue