Commit d23fe134 authored by Jan Včelák's avatar Jan Včelák 🚀

libdnssec, add error codes for DS computation

parent e522a1ed
...@@ -70,6 +70,7 @@ enum dnssec_error { ...@@ -70,6 +70,7 @@ enum dnssec_error {
DNSSEC_INVALID_KEY_ALGORITHM, DNSSEC_INVALID_KEY_ALGORITHM,
DNSSEC_INVALID_KEY_SIZE, DNSSEC_INVALID_KEY_SIZE,
DNSSEC_INVALID_KEY_ID, DNSSEC_INVALID_KEY_ID,
DNSSEC_INVALID_KEY_NAME,
DNSSEC_NO_PUBLIC_KEY, DNSSEC_NO_PUBLIC_KEY,
DNSSEC_NO_PRIVATE_KEY, DNSSEC_NO_PRIVATE_KEY,
...@@ -78,9 +79,13 @@ enum dnssec_error { ...@@ -78,9 +79,13 @@ enum dnssec_error {
DNSSEC_SIGN_INIT_ERROR, DNSSEC_SIGN_INIT_ERROR,
DNSSEC_SIGN_ERROR, DNSSEC_SIGN_ERROR,
DNSSEC_INVALID_SIGNATURE, DNSSEC_INVALID_SIGNATURE,
DNSSEC_INVALID_NSEC3_ALGORITHM, DNSSEC_INVALID_NSEC3_ALGORITHM,
DNSSEC_NSEC3_HASHING_ERROR, DNSSEC_NSEC3_HASHING_ERROR,
DNSSEC_INVALID_DS_ALGORITHM,
DNSSEC_DS_HASHING_ERROR,
DNSSEC_CONFIG_MALFORMED, DNSSEC_CONFIG_MALFORMED,
DNSSEC_CONFIG_INVALID_KEY_ID, DNSSEC_CONFIG_INVALID_KEY_ID,
......
...@@ -47,6 +47,7 @@ static const error_message_t ERROR_MESSAGES[] = { ...@@ -47,6 +47,7 @@ static const error_message_t ERROR_MESSAGES[] = {
{ DNSSEC_INVALID_KEY_ALGORITHM, "invalid key algorithm" }, { DNSSEC_INVALID_KEY_ALGORITHM, "invalid key algorithm" },
{ DNSSEC_INVALID_KEY_SIZE, "invalid key size" }, { DNSSEC_INVALID_KEY_SIZE, "invalid key size" },
{ DNSSEC_INVALID_KEY_ID, "invalid key ID" }, { DNSSEC_INVALID_KEY_ID, "invalid key ID" },
{ DNSSEC_INVALID_KEY_NAME, "invalid key name" },
{ DNSSEC_NO_PUBLIC_KEY, "no public key" }, { DNSSEC_NO_PUBLIC_KEY, "no public key" },
{ DNSSEC_NO_PRIVATE_KEY, "no private key" }, { DNSSEC_NO_PRIVATE_KEY, "no private key" },
...@@ -55,9 +56,13 @@ static const error_message_t ERROR_MESSAGES[] = { ...@@ -55,9 +56,13 @@ static const error_message_t ERROR_MESSAGES[] = {
{ DNSSEC_SIGN_INIT_ERROR, "signing initialization error" }, { DNSSEC_SIGN_INIT_ERROR, "signing initialization error" },
{ DNSSEC_SIGN_ERROR, "signing error" }, { DNSSEC_SIGN_ERROR, "signing error" },
{ DNSSEC_INVALID_SIGNATURE, "invalid signature" }, { DNSSEC_INVALID_SIGNATURE, "invalid signature" },
{ DNSSEC_INVALID_NSEC3_ALGORITHM, "invalid NSEC3 algorithm" }, { DNSSEC_INVALID_NSEC3_ALGORITHM, "invalid NSEC3 algorithm" },
{ DNSSEC_NSEC3_HASHING_ERROR, "NSEC3 hashing error" }, { DNSSEC_NSEC3_HASHING_ERROR, "NSEC3 hashing error" },
{ DNSSEC_INVALID_DS_ALGORITHM, "invalid DS algorithm" },
{ DNSSEC_DS_HASHING_ERROR, "DS hashing error" },
{ DNSSEC_CONFIG_MALFORMED, "malformed config value" }, { DNSSEC_CONFIG_MALFORMED, "malformed config value" },
{ DNSSEC_CONFIG_INVALID_KEY_ID, "invalid key ID in config" }, { DNSSEC_CONFIG_INVALID_KEY_ID, "invalid key ID in config" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment