Commit Graph

21 Commits

Author SHA1 Message Date
Tom Thorogood 513c1ff221 Simplify and unify various returns (#893) 2019-01-04 10:19:42 +00:00
Miek Gieben 46df8c9462 Fix for miekg/dns issue #289: support the SMIMEA record (#410)
1) Refactoring of tlsa.go
   - moved routine to create the certificate rdata to its own go module
     as this is shared between TLSA and SMIMEA records
2) Added support for creating an SMIMEA domain name
3) Developed in accordance with draft-ietf-dane-smime-12 RFC

Miek,

Submitting for your review. Happy to make any recommended changes or
address omissions.

Lightly tested against our internal DNS service which hosts DANE
SMIMEA records for our email certificates.

Parse tests are added.
2016-10-17 18:09:52 +01:00
Michael Haro 1be7320498 Use t.Errorf in tests and make the error variable naming more consistent. (#367)
* Make the error variable always named err.

Sometimes the error variable was named 'err' sometimes 'e'.  Sometimes
'e' refered to an EDNS or string and not an error type.

* Use t.Errorf instead of t.Logf & t.Fail.
2016-06-09 07:00:08 +01:00
Pauline Middelink 77b60828ed Missing dot between service and protocol. 2016-02-27 11:15:15 +01:00
Florian Obser 3d1b778699 If the Matching Type is 1 or 2 we need to return a hash. 2015-02-24 16:04:59 +01:00
Miek Gieben 0aa3021a83 Remove all copyright notices
Use the central COPYRIGHT file.
2014-09-11 20:57:37 +01:00
Miek Gieben 81941d4422 Update all copyright notices 2013-05-12 16:15:52 +02:00
Miek Gieben d53d9eab81 gofmt 2013-05-05 20:30:44 +02:00
Miek Gieben e1c501fcec Fix the CertificateToDane return value: add error
This is more inline with the rest of the functions which
do return an actual error. It is however a small api change.
2013-04-09 08:00:08 +01:00
Miek Gieben e57fd3228a typo 2013-02-15 13:50:24 +01:00
Miek Gieben efcd11a5f6 Just return the error 2013-02-15 13:50:05 +01:00
Miek Gieben 235e892dfc Rename the RR types drop the RR_ prefix
This is also done in the official Go library. It also make the
code shorter.
2012-12-09 19:23:25 +01:00
Miek Gieben dce8b2e71a gofmt 2012-10-10 22:17:50 +02:00
Miek Gieben 2ae6a170a5 documentation 2012-09-14 17:11:14 +02:00
Miek Gieben 895f5e7527 export this function as users will need it 2012-09-14 15:28:21 +02:00
Miek Gieben 6142025a50 more DANE stuff 2012-09-14 14:29:52 +02:00
Miek Gieben f6cf2ae240 Add validation 2012-09-14 11:56:02 +02:00
Miek Gieben 646ce89f6d documentation 2012-09-14 11:45:48 +02:00
Miek Gieben ca4d0dc3cc Make it compile 2012-09-14 11:41:12 +02:00
Miek Gieben 0b97a2fe91 Create TLSA (DANE) Helper function
Sign() creates a TLSA record from a certificate
2012-09-14 11:40:25 +02:00
Miek Gieben 7b351c0f08 added 2012-09-14 09:48:52 +02:00