argus/pep.h File Reference

Go to the source code of this file.

Defines

#define PEP_LOGLEVEL_DEBUG   3
 Logs ERROR, WARN, INFO and DEBUG messages.
#define PEP_LOGLEVEL_ERROR   0
 Logs only ERROR messages.
#define PEP_LOGLEVEL_INFO   2
 Logs ERROR, WARN and INFO messages.
#define PEP_LOGLEVEL_NONE   -1
 No logging at all.
#define PEP_LOGLEVEL_WARN   1
 Logs ERROR and WARN messages.

Typedefs

typedef struct pep_handle PEP
 PEP client handle.
typedef int pep_log_handler_callback (int level, const char *format, va_list args)
 Optional log handler function callback prototype.
typedef enum pep_option pep_option_t
 PEP client configuration options.

Enumerations

enum  pep_option {
  PEP_OPTION_LOG_LEVEL, PEP_OPTION_LOG_STDERR, PEP_OPTION_LOG_HANDLER, PEP_OPTION_ENDPOINT_URL,
  PEP_OPTION_ENDPOINT_SSL_VALIDATION, PEP_OPTION_ENDPOINT_SERVER_CERT, PEP_OPTION_ENDPOINT_SERVER_CAPATH, PEP_OPTION_ENDPOINT_CLIENT_CERT,
  PEP_OPTION_ENDPOINT_CLIENT_KEY, PEP_OPTION_ENDPOINT_CLIENT_KEYPASSWORD, PEP_OPTION_ENDPOINT_TIMEOUT, PEP_OPTION_ENABLE_PIPS,
  PEP_OPTION_ENABLE_OBLIGATIONHANDLERS, PEP_OPTION_ENDPOINT_SSL_CIPHER_LIST
}
 

PEP client configuration options.

More...

Functions

pep_error_t pep_addobligationhandler (PEP *pep, const pep_obligationhandler_t *oh)
 Adds an Obligation Handler post-processor to the PEP client.
pep_error_t pep_addpip (PEP *pep, const pep_pip_t *pip)
 Adds a PIP request pre-processor to the PEP client.
pep_error_t pep_authorize (PEP *pep, xacml_request_t **request, xacml_response_t **response)
 Sends the XACML request to the PEP daemon and returns the XACML response.
void pep_destroy (PEP *pep)
 Cleanups and destroys the PEP client.
int pep_getid (PEP *pep)
 Returns the id of the PEP handle.
void pep_global_cleanup (void)
 NOT THREAD SAFE.
pep_error_t pep_global_init (void)
 NOT THREAD SAFE.
PEPpep_initialize (void)
 Creates and initializes a new PEP client handle.
pep_error_t pep_setoption (PEP *pep, pep_option_t option,...)
 Sets a PEP client configuration option.
const char * pep_version (void)
 Returns a human readable string with the version number of the PEP client API and some of its important components (like libcurl version).

Generated on 29 Apr 2014 for Argus PEP client API by  doxygen 1.6.1