diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-29 11:24:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-29 11:24:43 +0100 |
commit | c4ccac7afb09784d15a38a27ec1b4c167cb031c5 (patch) | |
tree | 6fed6fb64529498175c57190582c975a63d3ec6d /src/libutil/logger.c | |
parent | 53632b619666d67d14640b1dc0832b2ab6eb8aa8 (diff) | |
download | rspamd-c4ccac7afb09784d15a38a27ec1b4c167cb031c5.tar.gz rspamd-c4ccac7afb09784d15a38a27ec1b4c167cb031c5.zip |
[CritFix] Check NM part of pubkey to match it with rotating keypairs
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r-- | src/libutil/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c index 99c22390f..bbdc69e97 100644 --- a/src/libutil/logger.c +++ b/src/libutil/logger.c @@ -584,7 +584,7 @@ rspamd_log_encrypt_message (const gchar *begin, const gchar *end, mac = p; p += rspamd_cryptobox_mac_bytes (RSPAMD_CRYPTOBOX_MODE_25519); memcpy (p, begin, end - begin); - comp = rspamd_pubkey_get_nm (rspamd_log->pk); + comp = rspamd_pubkey_get_nm (rspamd_log->pk, rspamd_log->keypair); g_assert (comp != NULL); rspamd_cryptobox_encrypt_nm_inplace (p, end - begin, nonce, comp, mac, RSPAMD_CRYPTOBOX_MODE_25519); |