DwmDns-0.1.0
Dwm::Dns::RRDataOPENPGPKEY Class Reference

Encapsulates OPENPGKPEY resource record data. More...

#include <DwmDnsRRDataOPENPGPKEY.hh>

Inheritance diagram for Dwm::Dns::RRDataOPENPGPKEY:
Collaboration diagram for Dwm::Dns::RRDataOPENPGPKEY:

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...
 

Detailed Description

Encapsulates OPENPGKPEY resource record data.

See RFC7929 for details.

Member Function Documentation

◆ Decode()

const uint8_t* Dwm::Dns::RRDataOPENPGPKEY::Decode ( const uint8_t *  pkt,
const uint8_t *  ptr,
uint16_t  pktlen,
uint16_t  rdlen 
)
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.

◆ Encode()

uint8_t* Dwm::Dns::RRDataOPENPGPKEY::Encode ( uint8_t *  pkt,
uint8_t *  ptr,
uint16_t  pktlen,
LabelPositions lps 
) const
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.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const RRDataOPENPGPKEY pgpkey 
)
friend

Print the NSEC3PARAM resource record data to an ostream in human readable form.


The documentation for this class was generated from the following file: