summaryrefslogtreecommitdiffstats
path: root/lib/class/xmlrpcserver.class.php
diff options
context:
space:
mode:
authordipsol <dipsol@ampache>2008-12-11 16:53:14 +0000
committerdipsol <dipsol@ampache>2008-12-11 16:53:14 +0000
commitf3bb93b2bf3b532afb7adfe8c73308d26c5e165c (patch)
tree512b2e99a5aee6efc737c13fa9265037775b4458 /lib/class/xmlrpcserver.class.php
parent93f3c4e9291dd3dac95721c922c02b3cf29c340a (diff)
downloadampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.tar.gz
ampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.tar.bz2
ampache-f3bb93b2bf3b532afb7adfe8c73308d26c5e165c.zip
XML-RPC uses now a sha256 digest
Diffstat (limited to 'lib/class/xmlrpcserver.class.php')
-rw-r--r--lib/class/xmlrpcserver.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/xmlrpcserver.class.php b/lib/class/xmlrpcserver.class.php
index 1d66dfd2..d8d5fed2 100644
--- a/lib/class/xmlrpcserver.class.php
+++ b/lib/class/xmlrpcserver.class.php
@@ -222,8 +222,8 @@ class xmlRpcServer {
while ($row = Dba::fetch_assoc($db_results)) {
// Build our encoded passphrase
- $md5pass = md5($timestamp . $row['key']);
- if ($md5pass == $encoded_key) {
+ $sha256pass = hash('sha256',$timestamp . hash('sha256',$row['key']));
+ if ($sha256pass == $encoded_key) {
$data['type'] = 'xml-rpc';
$data['username'] = 'System';
$data['value'] = 'Handshake';