Encapsulates DNSKEY resource record data. More...
#include <DwmDnsRRDataDNSKEY.hh>


Public Member Functions | |
| RRDataDNSKEY () | |
| Constructs empty DNSKEY resource record data. | |
| RRDataDNSKEY (uint16_t flags, uint8_t protocol, uint8_t algorithm, const std::string &publicKey) | |
Construct DNSKEY resource record data with the given flags, protocol, algorithm and publicKey. More... | |
| bool | operator== (const RRDataDNSKEY &dnskey) const |
| Equal-to operator, mostly for unit testing. | |
| uint16_t | Flags () const |
| Returns the flags in the DNSKEY resource record data. | |
| uint16_t | Flags (uint16_t flags) |
| Sets and returns the flags in the DNSKEY resource record data. | |
| uint8_t | Protocol () const |
| Per RFC 4034, protocol must always be 3. | |
| uint8_t | Protocol (uint8_t protocol) |
| Per RFC 4034, protocol must always be 3. | |
| uint8_t | Algorithm () const |
| Returns the algorithm in the DNSKEY resource record data. | |
| uint8_t | Algorithm (uint8_t algorithm) |
| Sets and returns the algorithm in the DNSKEY resource record data. | |
| const std::string & | PublicKey () const |
| Returns the public key in the DNSKEY resource record data. | |
| const std::string & | PublicKey (const std::string &publicKey) |
| Set and returns the public key in the DNSKEY resource record data. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the DNSKEY resource record data into buffer @ pkt of length pktlen, starting at ptr. More... | |
| const uint8_t * | Decode (const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen, uint16_t rdlen) |
Decodes the DNSKEY resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataDNSKEY &dnskey) |
| Print the DNSKEY resource record data to an ostream in human readable form. More... | |
Encapsulates DNSKEY resource record data.
See RFC 4034 for details.
| Dwm::Dns::RRDataDNSKEY::RRDataDNSKEY | ( | uint16_t | flags, |
| uint8_t | protocol, | ||
| uint8_t | algorithm, | ||
| const std::string & | publicKey | ||
| ) |
Construct DNSKEY resource record data with the given flags, protocol, algorithm and publicKey.
|
virtual |
Decodes the DNSKEY resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded DNSKEY resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded DNSKEY resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the DNSKEY resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded DNSKEY resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded DNSKEY resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the DNSKEY resource record data to an ostream in human readable form.