Encapsulates SSHFP recource record data. More...
#include <DwmDnsRRDataSSHFP.hh>


Public Member Functions | |
| RRDataSSHFP () | |
| Construct with an empty fingerprint. | |
| RRDataSSHFP (uint8_t algorithm, uint8_t fpType, const std::string &fingerprint) | |
Construct with the given algorithm, fpType and fingerprint. More... | |
| bool | operator== (const RRDataSSHFP &sshfp) const |
| Equal-to operator, mostly for unit testing. | |
| uint8_t | Algorithm () const |
| Returns the contained algorithm. | |
| uint8_t | Algorithm (uint8_t algorithm) |
| Sets and returns the contained algorithm. | |
| uint8_t | FPType () const |
| Returns the contained fingerprint type. | |
| uint8_t | FPType (uint8_t fpType) |
| Sets and returns the contained fingerprint type. | |
| const std::string & | Fingerprint () const |
| Returns the contained fingerprint. | |
| const std::string & | Fingerprint (const std::string &fingerprint) |
| Sets and returns the contained fingerprint. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the SSHFP 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 SSHFP resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataSSHFP &sshfp) |
| Print the SSHFP resource record data to an ostream in human readable form. More... | |
Encapsulates SSHFP recource record data.
See RFC4255 for details.
| Dwm::Dns::RRDataSSHFP::RRDataSSHFP | ( | uint8_t | algorithm, |
| uint8_t | fpType, | ||
| const std::string & | fingerprint | ||
| ) |
Construct with the given algorithm, fpType and fingerprint.
|
virtual |
Decodes the SSHFP resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded SSHFP resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded SSHFP resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the SSHFP resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded SSHFP resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded SSHFP resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the SSHFP resource record data to an ostream in human readable form.