Patch to make Ampache server work with 3.4.x and 3.5.x Authentication models
Karl Vollmer
vollmer at ampache.org
Wed Feb 18 00:27:43 CET 2009
Attached is a svn diff that should allow Amarok2 to authenticate to
3.4.x and 3.5.x Ampache servers. The Ampache service now requires QCA2
due to the use of SHA256() Thanks a to nhnFreespirit for working his
cmake-fu on the QCA2 cmake stuff.
This patch works by attempting to get a results set from
/xml.server.php?action=ping which is only valid on Ampache >=3.5.0. If
no valid response is returned the version is set to 10000, otherwise
the version is defined by the XML response. Using the version it
determines if it should use MD5() or SHA256().
This patch does not address the changes / new features in the 3.5.x
API however 3.4.x calls will work against 3.5.x so it should continue
to work for the foreseeable future... Until I break the Ampache end.
-Karl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amarok-ampache35.diff
Type: text/x-diff
Size: 8356 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/amarok-devel/attachments/20090217/734014de/attachment-0001.bin
More information about the Amarok-devel
mailing list