diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-07 22:20:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-07 22:20:41 +0100 |
commit | 7e1c77638f6fd4adf10f6e76d5d4f30d33c3183f (patch) | |
tree | 91400508bc700b3d997b18d3bc3398a26b77742b /src/libserver/dkim.h | |
parent | a34a5be0f79fbd9620c57590b8a9f4882b5e66e2 (diff) | |
download | rspamd-7e1c77638f6fd4adf10f6e76d5d4f30d33c3183f.tar.gz rspamd-7e1c77638f6fd4adf10f6e76d5d4f30d33c3183f.zip |
[Fix] Distinguish DKIM keys by md5
Diffstat (limited to 'src/libserver/dkim.h')
-rw-r--r-- | src/libserver/dkim.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/dkim.h b/src/libserver/dkim.h index 6245dc512..afd272028 100644 --- a/src/libserver/dkim.h +++ b/src/libserver/dkim.h @@ -268,12 +268,14 @@ rspamd_dkim_key_t *rspamd_dkim_make_key (const gchar *keydata, guint keylen, enum rspamd_dkim_key_type type, GError **err); +#define RSPAMD_DKIM_KEY_ID_LEN 16 /** - * Returns key id for dkim key (first 7 bytes of base64 representation) + * Returns key id for dkim key (raw md5 of RSPAMD_DKIM_KEY_ID_LEN) + * NOT ZERO TERMINATED, use RSPAMD_DKIM_KEY_ID_LEN for length * @param key * @return */ -const gchar *rspamd_dkim_key_id (rspamd_dkim_key_t *key); +const guchar *rspamd_dkim_key_id (rspamd_dkim_key_t *key); /** * Parse DKIM public key from a TXT record |