summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-27 12:58:37 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-28 01:18:55 +0100
commitaf22c65b272f0e7a1c0518c222749f3c09d05438 (patch)
tree817937637b0af8355fa7484a95d640f66ceadc13 /src
parentad798a641a775e795dc32916d57a3d16cebc8a7d (diff)
resolved: add SHA384 digest support
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-dnssec.c3
-rw-r--r--src/resolve/resolved-dns-rr.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c
index a856f0717e..3ebaeba76e 100644
--- a/src/resolve/resolved-dns-dnssec.c
+++ b/src/resolve/resolved-dns-dnssec.c
@@ -742,6 +742,9 @@ static int digest_to_gcrypt(uint8_t algorithm) {
case DNSSEC_DIGEST_SHA256:
return GCRY_MD_SHA256;
+ case DNSSEC_DIGEST_SHA384:
+ return GCRY_MD_SHA384;
+
default:
return -EOPNOTSUPP;
}
diff --git a/src/resolve/resolved-dns-rr.h b/src/resolve/resolved-dns-rr.h
index f2997883a8..a9a0e61767 100644
--- a/src/resolve/resolved-dns-rr.h
+++ b/src/resolve/resolved-dns-rr.h
@@ -64,6 +64,7 @@ enum {
enum {
DNSSEC_DIGEST_SHA1 = 1,
DNSSEC_DIGEST_SHA256 = 2,
+ DNSSEC_DIGEST_SHA384 = 4,
_DNSSEC_DIGEST_MAX_DEFINED
};