From 882483597580ee9316682cf6cf0cdc3ee7c77fda Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Wed, 13 Mar 2024 20:18:42 +0100 Subject: [PATCH] DKIM: downcase algorithms, accept ED25519. --- src/storage/zone.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/zone.cr b/src/storage/zone.cr index ff6d3fd..3681583 100644 --- a/src/storage/zone.cr +++ b/src/storage/zone.cr @@ -463,6 +463,7 @@ class DNSManager::Storage::Zone end enum SignatureAlgorithm RSA + ED25519 end enum HashAlgorithm SHA256 @@ -478,7 +479,7 @@ class DNSManager::Storage::Zone def initialize(@v, @h, @k, @p, @n) end def to_s(io : IO) - io << "v=#{v};h=#{h};k=#{k};p=#{p}" + io << "v=#{v};h=#{h.to_s.downcase};k=#{k.to_s.downcase};p=#{p}" io << ";n=#{n}" unless n == "" end end