err.h (799B)
1 #ifndef LIBQAEDA_ERR_H_ 2 #define LIBQAEDA_ERR_H_ 3 4 // provides ERR_OK = 0, ERR_FAIL = 1, ERR_UNIMPLEMENTED = 2 5 #include <rerr.h> 6 7 /// Error values used across all error contexts. 8 enum err_e { 9 RERR_PFX_LQ = 0x100, 10 ERR_REQUEST = 0x101, ///< Error related to certificate request messages 11 ERR_RESPONSE = 0x102, ///< Error related to certificate response messages 12 13 RERR_PFX_CRYPTO = 0x200, 14 ERR_NOCRYPTO = 0x201, 15 ERR_KEYFAIL = 0x202, 16 ERR_KEYFILE = 0x203, 17 ERR_KEY_UNLOCK = 0x204, 18 ERR_KEY_LOCK = 0x205, 19 ERR_KEY_REJECT = 0x206, 20 ERR_NOKEY = 0x207, 21 ERR_CIPHER = 0x208, 22 ERR_DIGEST = 0x209, 23 ERR_SIGFAIL = 0x210, 24 ERR_SIGVALID = 0x211, 25 26 RERR_PFX_STORE = 0x300, 27 ERR_STORE_AVAIL = 0x301, 28 29 RERR_PFX_CERT = 0x400, 30 ERR_DUP = 0x401, 31 ERR_SEQ = 0x402, 32 }; 33 34 void lq_err_init(); 35 36 #endif // LIBQAEDA_ERR_H_