commit 48da0cd: [Minor] Style fix

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 15 15:07:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-02-15 15:06:10 +0000
URL: https://github.com/rspamd/rspamd/commit/48da0cd7d04801fb0bb728ac5675e3c468573005 (HEAD -> master)

[Minor] Style fix

---
 src/libserver/dkim.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index faa4a78f4..55a874e32 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1371,8 +1371,9 @@ rspamd_dkim_make_key (const gchar *keydata,
 			g_set_error (err,
 					DKIM_ERROR,
 					DKIM_SIGERROR_KEYFAIL,
-					"DKIM key is has invalid length %d for eddsa",
-					(gint)key->decoded_len);
+					"DKIM key is has invalid length %d for eddsa; expected %d",
+					(gint)key->decoded_len,
+					rspamd_cryptobox_pk_sig_bytes (RSPAMD_CRYPTOBOX_MODE_25519));
 			REF_RELEASE (key);
 
 			return NULL;
@@ -2317,11 +2318,11 @@ rspamd_dkim_canonize_header_relaxed (struct rspamd_dkim_common_ctx *ctx,
 
 static gboolean
 rspamd_dkim_canonize_header (struct rspamd_dkim_common_ctx *ctx,
-	struct rspamd_task *task,
-	const gchar *header_name,
-	gint count,
-	const gchar *dkim_header,
-	const gchar *dkim_domain)
+							 struct rspamd_task *task,
+							 const gchar *header_name,
+							 gint count,
+							 const gchar *dkim_header,
+							 const gchar *dkim_domain)
 {
 	struct rspamd_mime_header *rh, *cur, *sel = NULL;
 	gint hdr_cnt = 0;


More information about the Commits mailing list