gofmt
This commit is contained in:
parent
7ca43a2a3f
commit
dce8b2e71a
|
@ -165,7 +165,7 @@ func (k *RR_DNSKEY) ToDS(h int) *RR_DS {
|
|||
|
||||
owner := make([]byte, 255)
|
||||
off, err1 := PackDomainName(k.Hdr.Name, owner, 0, nil, false)
|
||||
if err1 != nil {
|
||||
if err1 != nil {
|
||||
return nil
|
||||
}
|
||||
owner = owner[:off]
|
||||
|
@ -266,7 +266,7 @@ func (rr *RR_RRSIG) Sign(k PrivateKey, rrset []RR) error {
|
|||
h = sha512.New()
|
||||
ch = crypto.SHA512
|
||||
case RSAMD5:
|
||||
fallthrough // Deprecated in RFC 6725
|
||||
fallthrough // Deprecated in RFC 6725
|
||||
default:
|
||||
return ErrAlg
|
||||
}
|
||||
|
|
|
@ -621,7 +621,7 @@ func TestSRVPacking(t *testing.T) {
|
|||
}
|
||||
|
||||
_, err := msg.Pack()
|
||||
if err != nil{
|
||||
if err != nil {
|
||||
t.Fatalf("Couldn't pack %v\n", msg)
|
||||
}
|
||||
}
|
||||
|
|
2
tlsa.go
2
tlsa.go
|
@ -59,7 +59,7 @@ func (r *RR_TLSA) Verify(cert *x509.Certificate) error {
|
|||
if r.Certificate == CertificateToDANE(r.Selector, r.MatchingType, cert) {
|
||||
return nil
|
||||
}
|
||||
return ErrSig // ErrSig, really?
|
||||
return ErrSig // ErrSig, really?
|
||||
}
|
||||
|
||||
// TLSAName returns the ownername of a TLSA resource record as per the
|
||||
|
|
Loading…
Reference in New Issue