From: Vsevolod Stakhov Date: Mon, 11 Jun 2018 16:10:50 +0000 (+0100) Subject: [Minor] Fix issue with detection of ed25519 signatures X-Git-Tag: 1.7.6~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b8ee0bef7398d3cdf258e6b4055409246b705ce1;p=rspamd.git [Minor] Fix issue with detection of ed25519 signatures --- diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index 4aaa74a3b..e450f04c7 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -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 ||