thsmi / sieve

Sieve Script Editor
GNU Affero General Public License v3.0
751 stars 57 forks source link

SCRAM-SHA-512 doesn't work #900

Closed tobiasbrunner closed 9 months ago

tobiasbrunner commented 1 year ago

https://github.com/thsmi/sieve/blob/dfeeac10cb5cf65b08b31360229053bcdae50174/src/common/libManageSieve/SieveCrypto.mjs#L41

This should be:

 if ((name !== HASH_SHA1) && (name !== HASH_SHA256) && (name !== HASH_SHA512)) 

as this.name is only set after this check.

thsmi commented 9 months ago

Thank you for you contribution it is now integrated into the main.