Documentation cleanups
This commit is contained in:
parent
deb8fe381f
commit
53a0935749
7
sig0.go
7
sig0.go
|
@ -10,7 +10,8 @@
|
||||||
// ... protection for glue records, DNS requests, protection for message headers
|
// ... protection for glue records, DNS requests, protection for message headers
|
||||||
// on requests and responses, and protection of the overall integrity of a response.
|
// on requests and responses, and protection of the overall integrity of a response.
|
||||||
//
|
//
|
||||||
//
|
// It works like TSIG, except that SIG(0) uses public key cryptography, instead of the shared
|
||||||
|
// secret approach in TSIG.
|
||||||
package dns
|
package dns
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -25,8 +26,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Sign signs a dns.Msg it fills the signature data with the appropriate data.
|
// Sign signs a dns.Msg. It fills the signature with the appropriate data.
|
||||||
// The SIG records should have the SignerName, KeyTag, Algorithm, Inception
|
// The SIG record should have the SignerName, KeyTag, Algorithm, Inception
|
||||||
// and Expiration set.
|
// and Expiration set.
|
||||||
func (rr *SIG) Sign(k PrivateKey, m *Msg) ([]byte, error) {
|
func (rr *SIG) Sign(k PrivateKey, m *Msg) ([]byte, error) {
|
||||||
if k == nil {
|
if k == nil {
|
||||||
|
|
Loading…
Reference in New Issue