]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-crypt: Detect chacha20-poly1305 correctly
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 19 Sep 2024 05:28:12 +0000 (08:28 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:00 +0000 (10:40 +0200)
src/plugins/mail-crypt/mail-crypt-plugin.c

index d67cd66a104452858d4c3c8041a8911151805205..e4b171e827242b33bca5d395fc39bacea3a710a1 100644 (file)
@@ -263,7 +263,7 @@ mail_crypt_mail_save_begin(struct mail_save_context *ctx,
        if (muser != NULL && muser->set->crypt_write_algorithm[0] != '\0') {
                if (strstr(muser->set->crypt_write_algorithm, "gcm") != NULL ||
                    strstr(muser->set->crypt_write_algorithm, "ccm") != NULL ||
-                   strcasecmp(muser->set->crypt_write_algorithm,
+                   strstr(muser->set->crypt_write_algorithm,
                       "chacha20-poly1305") == 0)
                        enc_flags = IO_STREAM_ENC_INTEGRITY_AEAD;
                else