00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef APU_ERRNO_H
00018 #define APU_ERRNO_H
00019
00025 #include "apr.h"
00026 #include "apr_errno.h"
00027
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00063 #define APR_ENOKEY (APR_UTIL_START_STATUS + 1)
00064
00065 #define APR_ENOIV (APR_UTIL_START_STATUS + 2)
00066
00067 #define APR_EKEYTYPE (APR_UTIL_START_STATUS + 3)
00068
00069 #define APR_ENOSPACE (APR_UTIL_START_STATUS + 4)
00070
00071 #define APR_ECRYPT (APR_UTIL_START_STATUS + 5)
00072
00073 #define APR_EPADDING (APR_UTIL_START_STATUS + 6)
00074
00075 #define APR_EKEYLENGTH (APR_UTIL_START_STATUS + 7)
00076
00077 #define APR_ENOCIPHER (APR_UTIL_START_STATUS + 8)
00078
00079 #define APR_ENODIGEST (APR_UTIL_START_STATUS + 9)
00080
00081 #define APR_ENOENGINE (APR_UTIL_START_STATUS + 10)
00082
00083 #define APR_EINITENGINE (APR_UTIL_START_STATUS + 11)
00084
00085 #define APR_EREINIT (APR_UTIL_START_STATUS + 12)
00086
00109 #define APR_STATUS_IS_ENOKEY(s) ((s) == APR_ENOKEY)
00110
00113 #define APR_STATUS_IS_ENOIV(s) ((s) == APR_ENOIV)
00114
00117 #define APR_STATUS_IS_EKEYTYPE(s) ((s) == APR_EKEYTYPE)
00118
00121 #define APR_STATUS_IS_ENOSPACE(s) ((s) == APR_ENOSPACE)
00122
00125 #define APR_STATUS_IS_ECRYPT(s) ((s) == APR_ECRYPT)
00126
00129 #define APR_STATUS_IS_EPADDING(s) ((s) == APR_EPADDING)
00130
00133 #define APR_STATUS_IS_EKEYLENGTH(s) ((s) == APR_EKEYLENGTH)
00134
00137 #define APR_STATUS_IS_ENOCIPHER(s) ((s) == APR_ENOCIPHER)
00138
00141 #define APR_STATUS_IS_ENODIGEST(s) ((s) == APR_ENODIGEST)
00142
00145 #define APR_STATUS_IS_ENOENGINE(s) ((s) == APR_ENOENGINE)
00146
00149 #define APR_STATUS_IS_EINITENGINE(s) ((s) == APR_EINITENGINE)
00150
00153 #define APR_STATUS_IS_EREINIT(s) ((s) == APR_EREINIT)
00154
00161 typedef struct apu_err_t {
00162 const char *reason;
00163 const char *msg;
00164 int rc;
00165 } apu_err_t;
00166
00169 #ifdef __cplusplus
00170 }
00171 #endif
00172
00173 #endif