enforce the keysize

This commit is contained in:
Miek Gieben 2011-01-13 08:48:05 +01:00
parent 4109a032b9
commit 8582967bab
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func (r *RR_DNSKEY) GenerateRSA(bits int) (*rsa.PrivateKey, os.Error) {
case AlgRSASHA1: fallthrough
case AlgRSASHA256:
if bits < 512 || bits > 4096 {
//return nil, &Error{Error: "Size not in range [512..4096]"}
return nil, &Error{Error: "Size not in range [512..4096]"}
}
case AlgRSASHA512:
if bits < 1024 || bits > 4096 {