Skip to content
Snippets Groups Projects
Commit 39078fb2 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

errcode: lowercase initial letter

parent 38e93ce5
No related branches found
No related tags found
1 merge request!260Consistent error strings logging
......@@ -24,98 +24,98 @@ const error_table_t error_messages[] = {
{ KNOT_EOK, "OK" },
/* TSIG errors. */
{ KNOT_TSIG_EBADSIG, "Failed to verify TSIG MAC" },
{ KNOT_TSIG_EBADSIG, "failed to verify TSIG MAC" },
{ KNOT_TSIG_EBADKEY, "TSIG key not recognized or invalid" },
{ KNOT_TSIG_EBADTIME, "TSIG signing time out of range" },
/* Directly mapped error codes. */
{ KNOT_ENOMEM, "Not enough memory" },
{ KNOT_EINVAL, "Invalid parameter" },
{ KNOT_ENOTSUP, "Operation not supported" },
{ KNOT_EBUSY, "Requested resource is busy" },
{ KNOT_ENOMEM, "not enough memory" },
{ KNOT_EINVAL, "invalid parameter" },
{ KNOT_ENOTSUP, "operation not supported" },
{ KNOT_EBUSY, "requested resource is busy" },
{ KNOT_EAGAIN, "OS lacked necessary resources" },
{ KNOT_EACCES, "Operation not permitted" },
{ KNOT_ECONNREFUSED, "Connection refused" },
{ KNOT_EISCONN, "Already connected" },
{ KNOT_EADDRINUSE, "Address already in use" },
{ KNOT_ENOENT, "Not exists" },
{ KNOT_ERANGE, "Value is out of range" },
{ KNOT_EACCES, "operation not permitted" },
{ KNOT_ECONNREFUSED, "connection refused" },
{ KNOT_EISCONN, "already connected" },
{ KNOT_EADDRINUSE, "address already in use" },
{ KNOT_ENOENT, "not exists" },
{ KNOT_ERANGE, "value is out of range" },
/* General errors. */
{ KNOT_ERROR, "Failed" },
{ KNOT_ENOTRUNNING, "Resource is not running" },
{ KNOT_EPARSEFAIL, "Parser failed" },
{ KNOT_EEXPIRED, "Resource is expired" },
{ KNOT_EUPTODATE, "Zone is up-to-date" },
{ KNOT_EFEWDATA, "Not enough data to parse" },
{ KNOT_ESPACE, "Not enough space provided" },
{ KNOT_EMALF, "Malformed data" },
{ KNOT_ECRYPTO, "Error in crypto library" },
{ KNOT_ENSEC3PAR, "Missing or wrong NSEC3PARAM record" },
{ KNOT_ENSEC3CHAIN, "Missing or wrong NSEC3 chain in the zone" },
{ KNOT_EOUTOFZONE, "Name does not belong to the zone" },
{ KNOT_EHASH, "Error in hash table" },
{ KNOT_EZONEINVAL, "Invalid zone file" },
{ KNOT_EZONENOENT, "Zone file not found" },
{ KNOT_ENOZONE, "No such zone found" },
{ KNOT_ENONODE, "No such node in zone found" },
{ KNOT_EDNAMEPTR, "Domain name pointer larger than allowed" },
{ KNOT_EPAYLOAD, "Payload in OPT RR larger than max wire size" },
{ KNOT_ERROR, "failed" },
{ KNOT_ENOTRUNNING, "resource is not running" },
{ KNOT_EPARSEFAIL, "parser failed" },
{ KNOT_EEXPIRED, "resource is expired" },
{ KNOT_EUPTODATE, "zone is up-to-date" },
{ KNOT_EFEWDATA, "not enough data to parse" },
{ KNOT_ESPACE, "not enough space provided" },
{ KNOT_EMALF, "malformed data" },
{ KNOT_ECRYPTO, "error in crypto library" },
{ KNOT_ENSEC3PAR, "missing or wrong NSEC3PARAM record" },
{ KNOT_ENSEC3CHAIN, "missing or wrong NSEC3 chain in the zone" },
{ KNOT_EOUTOFZONE, "name does not belong to the zone" },
{ KNOT_EHASH, "error in hash table" },
{ KNOT_EZONEINVAL, "invalid zone file" },
{ KNOT_EZONENOENT, "zone file not found" },
{ KNOT_ENOZONE, "no such zone found" },
{ KNOT_ENONODE, "no such node in zone found" },
{ KNOT_EDNAMEPTR, "domain name pointer larger than allowed" },
{ KNOT_EPAYLOAD, "payload in OPT RR larger than max wire size" },
{ KNOT_ECRC, "CRC check failed" },
{ KNOT_EPREREQ, "UPDATE prerequisity not met" },
{ KNOT_ETTL, "TTL mismatch" },
{ KNOT_ENOXFR, "Transfer was not sent" },
{ KNOT_ENOIXFR, "Transfer is not IXFR (is in AXFR format)" },
{ KNOT_EXFRREFUSED, "Zone transfer refused by the server" },
{ KNOT_EDENIED, "Not allowed" },
{ KNOT_ECONN, "Connection reset" },
{ KNOT_ETIMEOUT, "Connection timeout" },
{ KNOT_ENOXFR, "transfer was not sent" },
{ KNOT_ENOIXFR, "transfer is not IXFR (is in AXFR format)" },
{ KNOT_EXFRREFUSED, "zone transfer refused by the server" },
{ KNOT_EDENIED, "not allowed" },
{ KNOT_ECONN, "connection reset" },
{ KNOT_ETIMEOUT, "connection timeout" },
{ KNOT_EIXFRSPACE, "IXFR reply did not fit in" },
{ KNOT_ECNAME, "CNAME loop found in zone" },
{ KNOT_ENODIFF, "Cannot create zone diff" },
{ KNOT_ENODIFF, "cannot create zone diff" },
{ KNOT_EDSDIGESTLEN, "DS digest length does not match digest type" },
{ KNOT_ENOTSIG, "Expected a TSIG or SIG(0)" },
{ KNOT_ELIMIT, "Exceeded response rate limit" },
{ KNOT_EWRITABLE, "File is not writable" },
{ KNOT_EOF, "End of file" },
{ KNOT_ENOTSIG, "expected a TSIG or SIG(0)" },
{ KNOT_ELIMIT, "exceeded response rate limit" },
{ KNOT_EWRITABLE, "file is not writable" },
{ KNOT_EOF, "end of file" },
/* Control states. */
{ KNOT_CTL_STOP, "Stopping server" },
{ KNOT_CTL_STOP, "stopping server" },
/* Network errors. */
{ KNOT_NET_EADDR, "Bad address or host name" },
{ KNOT_NET_ESOCKET, "Can't create socket" },
{ KNOT_NET_ECONNECT, "Can't connect" },
{ KNOT_NET_ESEND, "Can't send data" },
{ KNOT_NET_ERECV, "Can't receive data" },
{ KNOT_NET_ETIMEOUT, "Network timeout" },
{ KNOT_NET_EADDR, "bad address or host name" },
{ KNOT_NET_ESOCKET, "can't create socket" },
{ KNOT_NET_ECONNECT, "can't connect" },
{ KNOT_NET_ESEND, "can't send data" },
{ KNOT_NET_ERECV, "can't receive data" },
{ KNOT_NET_ETIMEOUT, "network timeout" },
/* Encoding errors. */
{ KNOT_BASE64_ESIZE, "Invalid base64 string length" },
{ KNOT_BASE64_ECHAR, "Invalid base64 character" },
{ KNOT_BASE32HEX_ESIZE, "Invalid base32hex string length" },
{ KNOT_BASE32HEX_ECHAR, "Invalid base32hex character" },
{ KNOT_BASE64_ESIZE, "invalid base64 string length" },
{ KNOT_BASE64_ECHAR, "invalid base64 character" },
{ KNOT_BASE32HEX_ESIZE, "invalid base32hex string length" },
{ KNOT_BASE32HEX_ECHAR, "invalid base32hex character" },
/* Key parsing errors. */
{ KNOT_KEY_EPUBLIC_KEY_OPEN, "Cannot open public key file" },
{ KNOT_KEY_EPRIVATE_KEY_OPEN, "Cannot open private key file" },
{ KNOT_KEY_EPUBLIC_KEY_INVALID, "Public key file is invalid" },
{ KNOT_KEY_EPUBLIC_KEY_OPEN, "cannot open public key file" },
{ KNOT_KEY_EPRIVATE_KEY_OPEN, "cannot open private key file" },
{ KNOT_KEY_EPUBLIC_KEY_INVALID, "public key file is invalid" },
/* Key signing/verification errors. */
{ KNOT_DNSSEC_ENOTSUP, "Algorithm is not supported" },
{ KNOT_DNSSEC_EINVALID_KEY, "The signing key is invalid" },
{ KNOT_DNSSEC_EASSIGN_KEY, "Cannot assign the key" },
{ KNOT_DNSSEC_ECREATE_DIGEST_CONTEXT, "Cannot create digest context" },
{ KNOT_DNSSEC_EUNEXPECTED_SIGNATURE_SIZE, "Unexpected signature size" },
{ KNOT_DNSSEC_EDECODE_RAW_SIGNATURE, "Cannot decode the raw signature" },
{ KNOT_DNSSEC_EINVALID_SIGNATURE, "Signature is invalid" },
{ KNOT_DNSSEC_ESIGN, "Cannot create the signature" },
{ KNOT_DNSSEC_ENOKEY, "No keys for signing" },
{ KNOT_DNSSEC_ENOKEYDIR, "Keydir does not exist" },
{ KNOT_DNSSEC_EMISSINGKEYTYPE, "Missing KSK or ZSK for used algorithm" },
{ KNOT_DNSSEC_ENOTSUP, "algorithm is not supported" },
{ KNOT_DNSSEC_EINVALID_KEY, "the signing key is invalid" },
{ KNOT_DNSSEC_EASSIGN_KEY, "cannot assign the key" },
{ KNOT_DNSSEC_ECREATE_DIGEST_CONTEXT, "cannot create digest context" },
{ KNOT_DNSSEC_EUNEXPECTED_SIGNATURE_SIZE, "unexpected signature size" },
{ KNOT_DNSSEC_EDECODE_RAW_SIGNATURE, "cannot decode the raw signature" },
{ KNOT_DNSSEC_EINVALID_SIGNATURE, "signature is invalid" },
{ KNOT_DNSSEC_ESIGN, "cannot create the signature" },
{ KNOT_DNSSEC_ENOKEY, "no keys for signing" },
{ KNOT_DNSSEC_ENOKEYDIR, "keydir does not exist" },
{ KNOT_DNSSEC_EMISSINGKEYTYPE, "missing KSK or ZSK for used algorithm" },
/* NSEC3 errors. */
{ KNOT_NSEC3_ECOMPUTE_HASH, "Cannot compute NSEC3 hash" },
{ KNOT_NSEC3_ECOMPUTE_HASH, "cannot compute NSEC3 hash" },
{ KNOT_ERROR, NULL } /* Terminator */
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment