]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix issue with detection of ed25519 signatures
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Jun 2018 16:10:50 +0000 (17:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Jun 2018 16:10:50 +0000 (17:10 +0100)
src/libserver/dkim.c

index 4aaa74a3b574e15c28d825d7c53608b99ebf3565..e450f04c7787d39ace1e7326b165d1f37c31a7de 100644 (file)
@@ -1176,7 +1176,8 @@ rspamd_create_dkim_context (const gchar *sig,
                md_alg = EVP_sha1 ();
        }
        else if (ctx->sig_alg == DKIM_SIGN_RSASHA256 ||
-                       ctx->sig_alg == DKIM_SIGN_ECDSASHA256) {
+                       ctx->sig_alg == DKIM_SIGN_ECDSASHA256 ||
+                       ctx->sig_alg == DKIM_SIGN_EDDSASHA256) {
                md_alg = EVP_sha256 ();
        }
        else if (ctx->sig_alg == DKIM_SIGN_RSASHA512 ||