# databases/p5-Cache-Memcached-Fast
# devel/p5-Proc-Daemon
# sysutils/p5-Proc-PidUtil
-# security/p5-Digest-SHA256
# POE::Component::Client::HTTP uses HTTP::Request and response
# objects.
use HTML::HeadParser;
use SWF::Element; # p5-SWF-File
use Cache::Memcached::Fast;
-use Digest::SHA256;
+use Digest;
use HTML::HeadParser;
use Proc::Daemon;
sub memcached_check_url {
my ( $url ) = @_;
- my $context = Digest::SHA256::new($cfg{digest_bits});
+ my $context = Digest->new("SHA-256");
return $memd->get(unpack("H*", ($context->hash($url))));
}
sub memcached_cache_url {
my ( $url, $url_real ) = @_;
- my $context = Digest::SHA256::new($cfg{digest_bits});
+ my $context = Digest->new("SHA-256");
$memd->set(unpack("H*", ($context->hash($url))), $url_real, $cfg{cache_expire});
}