Update the documentation

This commit is contained in:
Miek Gieben 2014-02-02 20:30:52 +00:00
parent 53aa7cebbf
commit fb787f0d96
1 changed files with 3 additions and 2 deletions

View File

@ -201,10 +201,12 @@ func (k *DNSKEY) ToDS(h int) *DS {
}
// Sign signs an RRSet. The signature needs to be filled in with
// the values: OrigTtl, Inception, Expiration, KeyTag, SignerName and Algorithm.
// the values: Inception, Expiration, KeyTag, SignerName and Algorithm.
// The rest is copied from the RRset. Sign returns true when the signing went OK,
// otherwise false.
// There is no check if RRSet is a proper (RFC 2181) RRSet.
// If OrigTTL is non zero, it is used as-is, otherwise the TTL of the RRset
// is used as the OrigTTL.
func (rr *RRSIG) Sign(k PrivateKey, rrset []RR) error {
if k == nil {
return ErrPrivKey
@ -221,7 +223,6 @@ func (rr *RRSIG) Sign(k PrivateKey, rrset []RR) error {
rr.OrigTtl = rrset[0].Header().Ttl
}
rr.TypeCovered = rrset[0].Header().Rrtype
rr.TypeCovered = rrset[0].Header().Rrtype
rr.Labels = uint8(CountLabel(rrset[0].Header().Name))
if strings.HasPrefix(rrset[0].Header().Name, "*") {