Encapsulates CERT resource record data. More...
#include <DwmDnsRRDataCERT.hh>


Public Member Functions | |
| RRDataCERT () | |
| Constructor. | |
| RRDataCERT (uint16_t type, uint16_t keyTag, uint8_t algorithm, const std::string &certificate) | |
Construct a CERT with type, keyTag, algorithm and certificate. More... | |
| bool | operator== (const RRDataCERT &cert) const |
| Equal-to operator, mostly for unit testing. | |
| uint16_t | Type () const |
| Returns the type in the CERT resource record data. | |
| uint16_t | Type (uint16_t type) |
| Sets and returns the type in the CERT resource record data. | |
| uint16_t | KeyTag () const |
| Returns the key tag in the CERT resource record data. | |
| uint16_t | KeyTag (uint16_t keyTag) |
| Sets and returns the key tag in the CERT resource record data. | |
| uint8_t | Algorithm () const |
| Returns the algorithm in the CERT resource record data. | |
| uint8_t | Algorithm (uint8_t algorithm) |
| Sets and returns the algorithm in the CERT resource record data. | |
| const std::string & | Certificate () const |
| Returns the certificate in the CERT resource record data. | |
| const std::string & | Certificate (const std::string &certificate) |
| Sets and returns the certificate in the CERT resource record data. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the CERT 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 CERT resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataCERT &cert) |
| Print the CERT resource record data to an ostream in human readable form. More... | |
Encapsulates CERT resource record data.
See RFC 4398 for details.
| Dwm::Dns::RRDataCERT::RRDataCERT | ( | uint16_t | type, |
| uint16_t | keyTag, | ||
| uint8_t | algorithm, | ||
| const std::string & | certificate | ||
| ) |
Construct a CERT with type, keyTag, algorithm and certificate.
|
virtual |
Decodes the CERT resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded CERT resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded CERT resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the CERT resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded CERT resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded CERT resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the CERT resource record data to an ostream in human readable form.