resolved: add SHA384 digest support

This commit is contained in:
Lennart Poettering 2015-12-27 12:58:37 +01:00
parent ad798a641a
commit af22c65b27
2 changed files with 4 additions and 0 deletions

View File

@ -742,6 +742,9 @@ static int digest_to_gcrypt(uint8_t algorithm) {
case DNSSEC_DIGEST_SHA256: case DNSSEC_DIGEST_SHA256:
return GCRY_MD_SHA256; return GCRY_MD_SHA256;
case DNSSEC_DIGEST_SHA384:
return GCRY_MD_SHA384;
default: default:
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }

View File

@ -64,6 +64,7 @@ enum {
enum { enum {
DNSSEC_DIGEST_SHA1 = 1, DNSSEC_DIGEST_SHA1 = 1,
DNSSEC_DIGEST_SHA256 = 2, DNSSEC_DIGEST_SHA256 = 2,
DNSSEC_DIGEST_SHA384 = 4,
_DNSSEC_DIGEST_MAX_DEFINED _DNSSEC_DIGEST_MAX_DEFINED
}; };