Encapsulates OPENPGKPEY resource record data. More...
#include <DwmDnsRRDataOPENPGPKEY.hh>


Public Member Functions | |
| RRDataOPENPGPKEY () | |
| Construct with empty public key. | |
| RRDataOPENPGPKEY (const std::string &publicKey) | |
Construct with the given publicKey. | |
| bool | operator== (const RRDataOPENPGPKEY &openpgpkey) const |
| Equal-to operator. | |
| const std::string & | PublicKey () const |
| Returns the contained public key. | |
| const std::string & | PublicKey (const std::string &publicKey) |
| Sets and returns the contained public key. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the OPENPGPKEY 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 OPENPGPKEY resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Static Public Attributes | |
| static const uint16_t | k_rrtype = 61 |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataOPENPGPKEY &pgpkey) |
| Print the NSEC3PARAM resource record data to an ostream in human readable form. More... | |
Encapsulates OPENPGKPEY resource record data.
See RFC7929 for details.
|
virtual |
Decodes the OPENPGPKEY resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded OPENPGPKEY resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded OPENPGPKEY resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the OPENPGPKEY resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded OPENPGPKEY resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded OPENPGPKEY resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the NSEC3PARAM resource record data to an ostream in human readable form.