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

NSEC3: remove unused function knot_is_nsec3_algorithm()

Unused and useless anyway.
parent 6c96d19b
No related branches found
No related tags found
No related merge requests found
......@@ -165,17 +165,3 @@ int knot_nsec3_hash(const knot_nsec3_params_t *params, const uint8_t *data,
return nsec3_sha1(params->salt, params->salt_length, params->iterations,
data, data_size, digest, digest_size);
}
/*!
* \brief Check if the key algorithm is designated for NSEC3.
*/
bool knot_is_nsec3_algorithm(uint8_t algorithm)
{
switch (algorithm) {
case KNOT_DNSSEC_ALG_DSA_NSEC3_SHA1:
case KNOT_DNSSEC_ALG_RSASHA1_NSEC3_SHA1:
return true;
default:
return false;
}
}
......@@ -116,15 +116,6 @@ void knot_nsec3_params_free(knot_nsec3_params_t *params);
int knot_nsec3_hash(const knot_nsec3_params_t *params, const uint8_t *data,
size_t size, uint8_t **digest, size_t *digest_size);
/*!
* \brief Check if the key algorithm is designated for NSEC3.
*
* \param algorithm Algorithm number.
*
* \return Key with given algorithm must be used with NSEC3.
*/
bool knot_is_nsec3_algorithm(uint8_t algorithm);
#endif // _KNOT_DNSSEC_NSEC3_H_
/*! @} */
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