Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExchangeEncrypted ¶
func ExchangeEncrypted(serverAddress string, msg dns.Msg, bincertFields SignedBincertFields) (dns.Msg, error)
ExchangeEncrypted exchanges encrypted dns query and returns the response message. It needs the specifics of a DNSC server as obtained by calling GetValidCert()
Types ¶
type SignedBincertFields ¶
type SignedBincertFields struct { ServerPublicKey [32]byte MagicQuery [8]byte Serial [4]byte TSBegin uint32 TSEnd uint32 }
SignedBincertFields Represents the detailed structure of a DNSC certificate
func GetValidCert ¶
func GetValidCert(serverAddress string, providerName string, providerKey []byte) (SignedBincertFields, error)
GetValidCert retrieves th DNSC certificate for a server it validates the certificate and returns the certificates details iff it is valid. Otherwise an error is returned.
Click to show internal directories.
Click to hide internal directories.