Commit Graph

2791 Commits

Author SHA1 Message Date
Miek Gieben dcb0117c0a add AUTHOR file
Cleanup the other files a bit.
2014-02-10 17:15:49 +00:00
Miek Gieben 8f334b52a0 Merge branch 'master' of github.com:miekg/dns 2014-02-10 15:31:20 +00:00
Miek Gieben 6293844a72 Check compression lengths 2014-02-10 12:43:38 +00:00
Miek Gieben 0cba5240c3 More tests lenght 2014-02-10 12:43:09 +00:00
Miek Gieben 372e3d55c3 More tests lenght 2014-02-10 12:29:33 +00:00
Miek Gieben 56e0bb46d8 Remove packLen() and fix bug in Len()
packLen() was a featureless mirror of Len(). Remove it, and just use
Len() internally too.
Fix bug in Len() too, where the length of the additional section was
not counted.
2014-02-10 12:23:53 +00:00
Miek Gieben 1f066aa6d9 Test for procent in label names 2014-02-07 10:19:14 +00:00
Miek Gieben 5ecc38c003 Better docs 2014-02-06 10:32:38 +00:00
Miek Gieben 4f6fef6777 If the TC bit is set return a valid but smaller message
If the TC bit is set in a message, we will probably try to parse
half a message, which will fail. To fix this just return a message
header and the question section and don't parse the rest.
2014-02-05 21:47:26 +00:00
Miek Gieben 95fd782f44 Fix documentation for these public functions 2014-02-05 21:38:12 +00:00
Miek Gieben 5eec7f362c Merge pull request #82 from millerkil/faster-unpack
Use slice to build domain string for unpacking
2014-02-02 23:44:25 -08:00
Miek Gieben fb787f0d96 Update the documentation 2014-02-02 20:30:52 +00:00
Miek Gieben 53aa7cebbf Add test for SRV signing 2014-02-02 19:25:55 +00:00
Alex Ciuba 008c1d5916 Add domain unpacking benchmark 2014-02-01 01:29:10 -05:00
Alex Ciuba 16d6ebe1c1 Use slice to build domain string 2014-02-01 01:29:00 -05:00
Miek Gieben dd35496669 dont care about padding for benchmark function 2014-01-29 07:56:21 +00:00
Miek Gieben 876680216e Revert "Revert "Add benchmark for message unpacking""
This reverts commit ca87093b6d.
2014-01-29 07:52:43 +00:00
Miek Gieben 509a6ff9e2 Revert "Revert "Fix benchmark alignment""
This reverts commit b8e6bd45be.
2014-01-29 07:52:23 +00:00
Miek Gieben f2f9d43da5 Revert "Revert "Add more benchmarks""
This reverts commit 58a3a82b8e.
2014-01-29 07:51:36 +00:00
Miek Gieben 58a3a82b8e Revert "Add more benchmarks"
This reverts commit 5a3bf3d749.
2014-01-28 22:44:07 +00:00
Miek Gieben b8e6bd45be Revert "Fix benchmark alignment"
This reverts commit 008dfb4ee8.
2014-01-28 22:43:57 +00:00
Miek Gieben 9ba617e870 Revert "Share the message buffer if we have room"
This reverts commit 17ce0cd52f.
2014-01-28 22:43:48 +00:00
Miek Gieben ca87093b6d Revert "Add benchmark for message unpacking"
This reverts commit dc4eddaf9a.
2014-01-28 22:43:37 +00:00
Miek Gieben fe41b3f5b1 Fix typo and add allocated rfc number 2014-01-28 10:59:12 +00:00
Miek Gieben 57d45ae6e6 doc updates 2014-01-28 10:56:29 +00:00
Miek Gieben e287df0604 typos 2014-01-28 10:55:31 +00:00
Miek Gieben 27abc83e6a Merge pull request #80 from millerkil/optimize
A couple optimizations
2014-01-27 23:58:06 -08:00
Alex Ciuba dc4eddaf9a Add benchmark for message unpacking 2014-01-27 20:55:15 -05:00
Alex Ciuba 17ce0cd52f Share the message buffer if we have room 2014-01-27 19:45:45 -05:00
Alex Ciuba 008dfb4ee8 Fix benchmark alignment 2014-01-27 17:40:57 -05:00
Alex Ciuba 5a3bf3d749 Add more benchmarks 2014-01-27 17:33:14 -05:00
Miek Gieben 9c75b3cdc2 Fi the tests too 2014-01-27 14:45:34 +00:00
Miek Gieben 39a8e2b8af Small api change to check RRSIG validity 2014-01-27 14:42:17 +00:00
Miek Gieben 9c0ff1489b Merge branch 'master' of github.com:miekg/dns 2014-01-27 14:32:07 +00:00
Miek Gieben bb2ef9e3fc Add generic Copy function that copies RRs
Don't export all the copy() functions, instead add a Copy() function
that use the RR interface
2014-01-27 14:25:24 +00:00
Alex Ciuba b8262501a8 Minimize reflection calls 2014-01-26 16:14:32 -05:00
Alex Ciuba f73d400eb2 Reduce string allocations 2014-01-26 16:14:32 -05:00
Miek Gieben c97bb6d79d The right way around 2014-01-26 20:22:19 +00:00
Miek Gieben 2a659fce45 dnssec: don't override OrigTtl in sig
When creating a signature and the OrigTtl is already set
don't override it.
2014-01-26 19:53:49 +00:00
Miek Gieben be9e7276e9 Update documentation 2014-01-26 13:05:48 +00:00
Miek Gieben 3e0b079861 Merge pull request #78 from philips/fixup-example
fix(dns.go): Pref is now Preference
2014-01-26 00:30:54 -08:00
Miek Gieben 0a6d66e82d Merge pull request #79 from millerkil/opt-compress-help
Optimize compressionLenHelper
2014-01-26 00:26:15 -08:00
Alex Ciuba 3768fa0083 Optimize compressionLenHelper 2014-01-25 21:09:28 -05:00
Brandon Philips 870c049f52 fix(dns.go): Pref is now Preference
Simple mistake from, what I guess, was an earlier API change.
2014-01-25 15:57:16 -08:00
Miek Gieben 80d453b82d Merge pull request #77 from millerkil/optimize
Overallocate label index buffer
2014-01-25 13:48:46 -08:00
Alex Ciuba e429f38a76 Overallocate label index buffer 2014-01-25 14:21:46 -05:00
Miek Gieben 0364de3abf Make EDNS0 unpack return error on failure
Report these errors upwards when unpacking a message.
2014-01-24 10:09:22 +00:00
Miek Gieben 7004ce03e8 Merge branch 'master' of github.com:miekg/dns 2014-01-24 09:25:37 +00:00
Pieter de Boer e32b05768f Fix length overrun in EDNS0 parsing.
Original text: (in Dutch)

Ik kreeg crashes (index out of range) in het parsen van een EDNS0_LLQ
optie, doordat de method: 'func (e *EDNS0_LLQ) unpack(b []byte)' een
byte slice van 1 byte groot kreeg waar dan meerdere uint16's uit gelezen
werden.
2014-01-24 09:15:56 +00:00
Miek Gieben 5d856e327f Merge pull request #76 from andrewtj/atj-constant-time-tsigverify
Make TsigVerify's MAC comparison take constant time
2014-01-23 23:23:20 -08:00