Typedefs | |
typedef enum pep_error | pep_error_t |
PEP client error codes. | |
Enumerations | |
enum | pep_error { PEP_OK = 0, PEP_ERR_MEMORY, PEP_ERR_NULL_POINTER, PEP_ERR_LLIST, PEP_ERR_CURL, PEP_ERR_PIP_INIT, PEP_ERR_OH_INIT, PEP_ERR_OPTION_INVALID, PEP_ERR_PIP_PROCESS, PEP_ERR_CURL_PERFORM, PEP_ERR_AUTHZ_REQUEST, PEP_ERR_OH_PROCESS, PEP_ERR_MARSHALLING_HESSIAN, PEP_ERR_MARSHALLING_IO, PEP_ERR_UNMARSHALLING_HESSIAN, PEP_ERR_UNMARSHALLING_IO } |
PEP client error codes. More... | |
Functions | |
const char * | pep_strerror (pep_error_t pep_errno) |
Gets the string describing the error number errno. |
Example:
... pep_error_t pep_rc= pep_setoption(pep,PEP_OPTION_ENDPOINT_URL,"http://argus.example.org:8154/authz"); if (pep_rc != PEP_OK) { fprintf(stderr,"ERROR: %s\n",pep_strerror(pep_rc)); pep_destroy(pep); exit(1); } ...
typedef enum pep_error pep_error_t |
PEP client error codes.
Use pep_strerror(pep_error_t errno) to retrieve the error description.
enum pep_error |
PEP client error codes.
Use pep_strerror(pep_error_t errno) to retrieve the error description.
PEP_OK | OK, No error. |
PEP_ERR_MEMORY | Memory allocation error. |
PEP_ERR_NULL_POINTER | NULL pointer exception. |
PEP_ERR_LLIST | Linked list allocation error. |
PEP_ERR_CURL | Curl error. |
PEP_ERR_PIP_INIT | PIP pip_init_func() error in pep_addpip(pep_pip_t *). |
PEP_ERR_OH_INIT | Obligation Hanlder oh_init_func() error in pep_addobligationhandler(pep_obligationhandler_t *). |
PEP_ERR_OPTION_INVALID | PEP client option invalid in pep_setoption(pep_option_t,args). |
PEP_ERR_PIP_PROCESS | PIP process(pep_request_t) error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_CURL_PERFORM | Curl POST error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_AUTHZ_REQUEST | HTTP Request failed (status not 200) in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_OH_PROCESS | Obligation Handler oh_process_func() error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_MARSHALLING_HESSIAN | Hessian marshalling error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_MARSHALLING_IO | IO error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_UNMARSHALLING_HESSIAN | Hessian unmarshalling error in pep_authorize(pep_request_t **,pep_response_t **). |
PEP_ERR_UNMARSHALLING_IO | IO error in pep_authorize(pep_request_t **,pep_response_t **). |
const char* pep_strerror | ( | pep_error_t | pep_errno | ) |
Gets the string describing the error number errno.
pep_errno | the error code returned by a function. |