]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Refactor encryption key selection into helper functions
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 5 Oct 2025 14:32:09 +0000 (15:32 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 5 Oct 2025 14:32:09 +0000 (15:32 +0100)
commitdfd76810bbcd7a9597730103ffe9c6cd6cf7c5a0
treeb30dbe96b1ec0e99aded7a40b659dd1c8a2be62c
parent9744f46f4e5219f47b43a228ba9c53d00b688399
[Minor] Refactor encryption key selection into helper functions

Extract repeated key selection logic into fuzzy_select_encryption_keys()
and fuzzy_rule_has_encryption() helper functions. This reduces code
duplication and improves readability across fuzzy_cmd_stat(),
fuzzy_cmd_ping(), fuzzy_cmd_hash(), fuzzy_cmd_from_text_part(),
fuzzy_cmd_from_data_part(), and fuzzy_process_reply() functions.
src/plugins/fuzzy_check.c