DKIM: downcase algorithms, accept ED25519.

master
Philippe Pittoli 2024-03-13 20:18:42 +01:00
parent 05fff1b83b
commit 8824835975
1 changed files with 2 additions and 1 deletions

View File

@ -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