--- services/services.module	Thu Oct 15 06:59:56 2009
+++ services/services.module	Mon Nov 02 14:47:46 2009
@@ -141,7 +141,7 @@
   $output .= '<cross-domain-policy>'."\n";
   $output .= '  <allow-access-from domain="'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n";
   $output .= '  <allow-access-from domain="*.'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n";
-  $keys = services_get_keys();
+  $keys = (function_exists('services_keyauth_get_keys')) ? services_keyauth_get_keys() : array();
 
   foreach ($keys as $key) {
     if (!empty($key->domain)) {
