This commit is contained in:
Miek Gieben 2013-05-05 20:30:44 +02:00
parent ba747fd510
commit d53d9eab81
14 changed files with 64 additions and 64 deletions

20
msg.go
View File

@ -129,8 +129,8 @@ var TypeToString = map[uint16]string{
TypeL32: "L32", TypeL32: "L32",
TypeL64: "L64", TypeL64: "L64",
TypeLP: "LP", TypeLP: "LP",
TypeEUI48: "EUI48", TypeEUI48: "EUI48",
TypeEUI64: "EUI64", TypeEUI64: "EUI64",
TypeTKEY: "TKEY", // Meta RR TypeTKEY: "TKEY", // Meta RR
TypeTSIG: "TSIG", // Meta RR TypeTSIG: "TSIG", // Meta RR
TypeAXFR: "AXFR", // Meta RR TypeAXFR: "AXFR", // Meta RR
@ -183,14 +183,14 @@ var RcodeToString = map[int]string{
RcodeNXRrset: "NXRRSET", RcodeNXRrset: "NXRRSET",
RcodeNotAuth: "NOTAUTH", RcodeNotAuth: "NOTAUTH",
RcodeNotZone: "NOTZONE", RcodeNotZone: "NOTZONE",
RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891 RcodeBadSig: "BADSIG", // Also known as RcodeBadVers, see RFC 6891
// RcodeBadVers: "BADVERS", // RcodeBadVers: "BADVERS",
RcodeBadKey: "BADKEY", RcodeBadKey: "BADKEY",
RcodeBadTime: "BADTIME", RcodeBadTime: "BADTIME",
RcodeBadMode: "BADMODE", RcodeBadMode: "BADMODE",
RcodeBadName: "BADNAME", RcodeBadName: "BADNAME",
RcodeBadAlg: "BADALG", RcodeBadAlg: "BADALG",
RcodeBadTrunc: "BADTRUNC", RcodeBadTrunc: "BADTRUNC",
} }
// Rather than write the usual handful of routines to pack and // Rather than write the usual handful of routines to pack and

View File

@ -62,7 +62,7 @@ func (r *TLSA) Sign(usage, selector, matchingType int, cert *x509.Certificate) (
func (r *TLSA) Verify(cert *x509.Certificate) error { func (r *TLSA) Verify(cert *x509.Certificate) error {
c, err := CertificateToDANE(r.Selector, r.MatchingType, cert) c, err := CertificateToDANE(r.Selector, r.MatchingType, cert)
if err != nil { if err != nil {
return err // Not also ErrSig? return err // Not also ErrSig?
} }
if r.Certificate == c { if r.Certificate == c {
return nil return nil