Argus PEP client API  2.3
Macros | Typedefs | Enumerations | Functions
pep.h File Reference

Go to the source code of this file.

Macros

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

Typedefs

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

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. More...
 
pep_error_t pep_addpip (PEP *pep, const pep_pip_t *pip)
 Adds a PIP request pre-processor to the PEP client. More...
 
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. More...
 
void pep_destroy (PEP *pep)
 Cleanups and destroys the PEP client. More...
 
int pep_getid (PEP *pep)
 Returns the id of the PEP handle. More...
 
void pep_global_cleanup (void)
 NOT THREAD SAFE. More...
 
pep_error_t pep_global_init (void)
 NOT THREAD SAFE. More...
 
PEPpep_initialize (void)
 Creates and initializes a new PEP client handle. More...
 
pep_error_t pep_setoption (PEP *pep, pep_option_t option,...)
 Sets a PEP client configuration option. More...
 
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). More...