Kea 2.7.6
|
A helper structure to represent the search result of TSIGKeyRing::find()
.
More...
#include <tsigkey.h>
Public Member Functions | |
FindResult (Result param_code, const TSIGKey *param_key) | |
Public Attributes | |
const Result | code |
const TSIGKey *const | key |
A helper structure to represent the search result of TSIGKeyRing::find()
.
This is a straightforward pair of the result code and a pointer to the found key to represent the result of find(). We use this in order to avoid overloading the return value for both the result code ("success" or "not found") and the found object, i.e., avoid using null to mean "not found", etc.
This is a simple value class with no internal state, so for convenience we allow the applications to refer to the members directly.
See the description of find() for the semantics of the member variables.
const Result isc::dns::TSIGKeyRing::FindResult::code |
Definition at line 273 of file tsigkey.h.
Referenced by isc::dns::TSIGContext::TSIGContext().
const TSIGKey* const isc::dns::TSIGKeyRing::FindResult::key |
Definition at line 274 of file tsigkey.h.
Referenced by isc::dns::TSIGContext::TSIGContext().