gofmt
This commit is contained in:
parent
ba747fd510
commit
d53d9eab81
20
msg.go
20
msg.go
|
@ -129,8 +129,8 @@ var TypeToString = map[uint16]string{
|
|||
TypeL32: "L32",
|
||||
TypeL64: "L64",
|
||||
TypeLP: "LP",
|
||||
TypeEUI48: "EUI48",
|
||||
TypeEUI64: "EUI64",
|
||||
TypeEUI48: "EUI48",
|
||||
TypeEUI64: "EUI64",
|
||||
TypeTKEY: "TKEY", // Meta RR
|
||||
TypeTSIG: "TSIG", // Meta RR
|
||||
TypeAXFR: "AXFR", // Meta RR
|
||||
|
@ -183,14 +183,14 @@ var RcodeToString = map[int]string{
|
|||
RcodeNXRrset: "NXRRSET",
|
||||
RcodeNotAuth: "NOTAUTH",
|
||||
RcodeNotZone: "NOTZONE",
|
||||
RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891
|
||||
// RcodeBadVers: "BADVERS",
|
||||
RcodeBadKey: "BADKEY",
|
||||
RcodeBadTime: "BADTIME",
|
||||
RcodeBadMode: "BADMODE",
|
||||
RcodeBadName: "BADNAME",
|
||||
RcodeBadAlg: "BADALG",
|
||||
RcodeBadTrunc: "BADTRUNC",
|
||||
RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891
|
||||
// RcodeBadVers: "BADVERS",
|
||||
RcodeBadKey: "BADKEY",
|
||||
RcodeBadTime: "BADTIME",
|
||||
RcodeBadMode: "BADMODE",
|
||||
RcodeBadName: "BADNAME",
|
||||
RcodeBadAlg: "BADALG",
|
||||
RcodeBadTrunc: "BADTRUNC",
|
||||
}
|
||||
|
||||
// Rather than write the usual handful of routines to pack and
|
||||
|
|
2
tlsa.go
2
tlsa.go
|
@ -62,7 +62,7 @@ func (r *TLSA) Sign(usage, selector, matchingType int, cert *x509.Certificate) (
|
|||
func (r *TLSA) Verify(cert *x509.Certificate) error {
|
||||
c, err := CertificateToDANE(r.Selector, r.MatchingType, cert)
|
||||
if err != nil {
|
||||
return err // Not also ErrSig?
|
||||
return err // Not also ErrSig?
|
||||
}
|
||||
if r.Certificate == c {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue