You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2009/10/16 17:39:45 UTC

[Bug 6200] Replace use of Digest::SHA1 by Digest::SHA

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6200

--- Comment #3 from Mark Martinec <Ma...@ijs.si> 2009-10-16 08:39:41 UTC ---
So, how about replacing the existing:

use Digest::SHA1 qw(sha1);

with:

BEGIN {
  eval { require Digest::SHA1; import Digest::SHA1 qw(sha1); 1 }
  or do { require Digest::SHA; import Digest::SHA qw(sha1) }
}


(or the other way around, trying SHA first and falling back to SHA1)


This way we could lose hard dependency on Digest::SHA1 (which is not a
base module), but retain compatibility with sites which will disable
the DKIM plugin and refuse to install Digest::SHA on pre-10.0 perls.

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.