123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- #ifndef APU_ERRNO_H
- #define APU_ERRNO_H
- #include "apr.h"
- #include "apr_errno.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define APR_ENOKEY (APR_UTIL_START_STATUS + 1)
- #define APR_ENOIV (APR_UTIL_START_STATUS + 2)
- #define APR_EKEYTYPE (APR_UTIL_START_STATUS + 3)
- #define APR_ENOSPACE (APR_UTIL_START_STATUS + 4)
- #define APR_ECRYPT (APR_UTIL_START_STATUS + 5)
- #define APR_EPADDING (APR_UTIL_START_STATUS + 6)
- #define APR_EKEYLENGTH (APR_UTIL_START_STATUS + 7)
- #define APR_ENOCIPHER (APR_UTIL_START_STATUS + 8)
- #define APR_ENODIGEST (APR_UTIL_START_STATUS + 9)
- #define APR_ENOENGINE (APR_UTIL_START_STATUS + 10)
- #define APR_EINITENGINE (APR_UTIL_START_STATUS + 11)
- #define APR_EREINIT (APR_UTIL_START_STATUS + 12)
- #define APR_STATUS_IS_ENOKEY(s) ((s) == APR_ENOKEY)
- #define APR_STATUS_IS_ENOIV(s) ((s) == APR_ENOIV)
- #define APR_STATUS_IS_EKEYTYPE(s) ((s) == APR_EKEYTYPE)
- #define APR_STATUS_IS_ENOSPACE(s) ((s) == APR_ENOSPACE)
- #define APR_STATUS_IS_ECRYPT(s) ((s) == APR_ECRYPT)
- #define APR_STATUS_IS_EPADDING(s) ((s) == APR_EPADDING)
- #define APR_STATUS_IS_EKEYLENGTH(s) ((s) == APR_EKEYLENGTH)
- #define APR_STATUS_IS_ENOCIPHER(s) ((s) == APR_ENOCIPHER)
- #define APR_STATUS_IS_ENODIGEST(s) ((s) == APR_ENODIGEST)
- #define APR_STATUS_IS_ENOENGINE(s) ((s) == APR_ENOENGINE)
- #define APR_STATUS_IS_EINITENGINE(s) ((s) == APR_EINITENGINE)
- #define APR_STATUS_IS_EREINIT(s) ((s) == APR_EREINIT)
- typedef struct apu_err_t {
- const char *reason;
- const char *msg;
- int rc;
- } apu_err_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
|