Kea 3.1.1
gss_tsig_api.h File Reference

C++ binding for the GSS-API. More...

#include <exceptions/exceptions.h>
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
#include <gssapi/gssapi_krb5.h>
#include <iostream>
#include <string>
#include <vector>
+ Include dependency graph for gss_tsig_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  isc::gss_tsig::GssApiBuffer
 GSS-API buffer. More...
 
class  isc::gss_tsig::GssApiCred
 GSS-API credential. More...
 
class  isc::gss_tsig::GssApiError
 GSS-API exception. More...
 
class  isc::gss_tsig::GssApiLastError
 Last error base class. More...
 
class  isc::gss_tsig::GssApiName
 GSS-API name. More...
 
class  isc::gss_tsig::GssApiOid
 GSS-API OID. More...
 
class  isc::gss_tsig::GssApiOidSet
 GSS-API OID set. More...
 
class  isc::gss_tsig::GssApiSecCtx
 GSS-API security context. More...
 
class  isc::gss_tsig::GssCredExpired
 

Namespaces

namespace  isc
 Defines the logger used by the top-level component of kea-lfc.
 
namespace  isc::gss_tsig
 

Typedefs

typedef boost::shared_ptr< GssApiBufferisc::gss_tsig::GssApiBufferPtr
 Shared pointer to GSS-API buffer.
 
typedef boost::shared_ptr< GssApiCredisc::gss_tsig::GssApiCredPtr
 Shared pointer to GSS-API credential.
 
typedef boost::shared_ptr< GssApiNameisc::gss_tsig::GssApiNamePtr
 Shared pointer to GSS-API name.
 
typedef boost::shared_ptr< GssApiOidisc::gss_tsig::GssApiOidPtr
 Shared pointer to GSS-API OID.
 
typedef boost::shared_ptr< GssApiOidSetisc::gss_tsig::GssApiOidSetPtr
 Shared pointer to GSS-API OID set.
 

Functions

string isc::gss_tsig::gssApiErrMsg (OM_uint32 major, OM_uint32 minor)
 An the error message.
 

Detailed Description

C++ binding for the GSS-API.

This files provide C++ bindings: each type has its corresponding C++ class: when a type is a structure (descriptor in GSS-API term) it gets a class encapsulating the structure at the exception of ASN.1 Object IDs. Some types are pointers to opaque structures.

To avoid ownership or memory issues all classes are not copyable and should be passed by references. Note the GSS-API does not make any argument const at a few exceptions so these references are plain (vs const) references.

The central GSS-API structure is the buffer. Opaque structures so pointer types are names, credential and security contexts.

Recommended reading:

  • RFC 2743 (GSS-API protocol) or
  • RFC 2744 (GSS-API - C Bindings)

Definition in file gss_tsig_api.h.