00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _PEP_ERROR_H_
00026 #define _PEP_ERROR_H_
00027
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00059 typedef enum pep_error {
00060 PEP_OK = 0,
00061 PEP_ERR_MEMORY,
00062 PEP_ERR_NULL_POINTER,
00063 PEP_ERR_LLIST,
00064 PEP_ERR_CURL,
00065 PEP_ERR_PIP_INIT,
00066 PEP_ERR_OH_INIT,
00067 PEP_ERR_OPTION_INVALID,
00068 PEP_ERR_PIP_PROCESS,
00069 PEP_ERR_CURL_PERFORM,
00070 PEP_ERR_AUTHZ_REQUEST,
00071 PEP_ERR_OH_PROCESS,
00072 PEP_ERR_MARSHALLING_HESSIAN,
00073 PEP_ERR_MARSHALLING_IO,
00074 PEP_ERR_UNMARSHALLING_HESSIAN,
00075 PEP_ERR_UNMARSHALLING_IO
00076 } pep_error_t;
00077
00084 const char * pep_strerror(pep_error_t pep_errno);
00085
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091
00092 #endif