![]() |
Kea 3.1.1
|
GSS-API buffer. More...
#include <gss_tsig_api.h>
Public Member Functions | |
GssApiBuffer () | |
Constructor. | |
GssApiBuffer (const std::string &content) | |
Constructor. | |
GssApiBuffer (const std::vector< uint8_t > &content) | |
Constructor. | |
GssApiBuffer (size_t length, const void *value) | |
Constructor. | |
~GssApiBuffer () | |
Destructor. | |
bool | empty () const |
Empty predicate. | |
std::vector< uint8_t > | getContent () const |
Get the content as a vector. | |
size_t | getLength () const |
Get the length. | |
gss_buffer_t | getPtr () |
Get pointer. | |
std::string | getString (bool trim=false) const |
Get the content as a string. | |
void * | getValue () |
Get the value. | |
GSS-API buffer.
Encapsulate the gss_buffer_desc (structure with length and value) type.
Definition at line 100 of file gss_tsig_api.h.
isc::gss_tsig::GssApiBuffer::GssApiBuffer | ( | ) |
Constructor.
Definition at line 72 of file gss_tsig_api.cc.
isc::gss_tsig::GssApiBuffer::GssApiBuffer | ( | size_t | length, |
const void * | value ) |
Constructor.
length | Buffer length. |
value | Buffer value. |
Definition at line 76 of file gss_tsig_api.cc.
References isc_throw.
|
explicit |
Constructor.
content | Content as a vector of bytes. |
Definition at line 96 of file gss_tsig_api.cc.
References isc_throw.
|
explicit |
Constructor.
content | Content as a string. |
Definition at line 116 of file gss_tsig_api.cc.
References isc_throw.
isc::gss_tsig::GssApiBuffer::~GssApiBuffer | ( | ) |
Destructor.
Use gss_release_buffer GSS-API function.
Definition at line 139 of file gss_tsig_api.cc.
|
inline |
Empty predicate.
Definition at line 129 of file gss_tsig_api.h.
Referenced by isc::gss_tsig::gssApiErrMsg().
vector< uint8_t > isc::gss_tsig::GssApiBuffer::getContent | ( | ) | const |
Get the content as a vector.
Definition at line 150 of file gss_tsig_api.cc.
Referenced by isc::gss_tsig::GssApiSecCtx::serialize(), and isc::gss_tsig::GssTsigContext::sign().
|
inline |
Get the length.
Definition at line 143 of file gss_tsig_api.h.
Referenced by isc::gss_tsig::GssTsigContext::sign().
|
inline |
Get pointer.
Definition at line 136 of file gss_tsig_api.h.
Referenced by isc::gss_tsig::GssApiOid::GssApiOid(), isc::gss_tsig::GssApiSecCtx::GssApiSecCtx(), isc::gss_tsig::GssApiSecCtx::accept(), isc::gss_tsig::gssApiErrMsg(), isc::gss_tsig::GssApiSecCtx::init(), isc::gss_tsig::GssApiSecCtx::serialize(), isc::gss_tsig::GssApiSecCtx::sign(), isc::gss_tsig::GssApiName::toString(), isc::gss_tsig::GssApiOid::toString(), and isc::gss_tsig::GssApiSecCtx::verify().
string isc::gss_tsig::GssApiBuffer::getString | ( | bool | trim = false | ) | const |
Get the content as a string.
trim | When true treat the buffer as a C string, when false (the default) treat the buffer as a C++ string. |
Definition at line 160 of file gss_tsig_api.cc.
Referenced by isc::gss_tsig::GssApiName::toString(), and isc::gss_tsig::GssApiOid::toString().
|
inline |
Get the value.
Definition at line 153 of file gss_tsig_api.h.
Referenced by isc::gss_tsig::gssApiErrMsg(), and isc::gss_tsig::GssTsigContext::sign().