Index: openid_provider.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openid_provider/openid_provider.inc,v
retrieving revision 1.3
diff -u -p -b -r1.3 openid_provider.inc
--- openid_provider.inc	7 Sep 2008 03:41:22 -0000	1.3
+++ openid_provider.inc	17 Oct 2008 18:59:58 -0000
@@ -95,11 +95,11 @@ function openid_provider_authentication_
 
   // Check for a directed identity request.
   if ($request['openid.identity'] == 'http://specs.openid.net/auth/2.0/identifier_select') {
-    $identity = url('user/' . $user->uid, array('absolute' => TRUE));
+    $identity = url('openid/provider/user/' . $user->uid, array('absolute' => TRUE));
   }
   else {
     $identity = $request['openid.identity'];
-    if ($identity != url('user/'. $user->uid, array('absolute' => TRUE))) {
+    if ($identity != url('openid/provider/user/'. $user->uid, array('absolute' => TRUE))) {
       $response = openid_provider_authentication_error($request['openid.mode']);
       openid_redirect($request['openid.return_to'], $response);
     }
@@ -130,6 +130,9 @@ function openid_provider_authentication_
     }
   }
   
+  // calling hook_openid so we can do response parsing and send any pertinent data back to the user
+  $response = array_merge($response, module_invoke_all('openid_provider', 'response', $response, $request));
+
   $rp = _openid_provider_rp_load($user->uid, $realm);
   if ($rp->auto_release) {
     $response = _openid_provider_sign($response);
@@ -309,7 +312,7 @@ function _openid_provider_sign($response
   }
 
   $signed_keys = array('op_endpoint', 'return_to', 'response_nonce', 'assoc_handle', 'identity', 'claimed_id');
-  $signed_keys = array_merge($signed_keys, module_invoke_all('openid', 'signed', $response));
+  $signed_keys = array_merge($signed_keys, module_invoke_all('openid_provider', 'signed', $response));
   $response['openid.signed'] = implode(',', $signed_keys);
   
   // Use the request openid.assoc_handle to look up
@@ -350,7 +353,7 @@ function _openid_provider_add($a, $b) {
     return gmp_add($a, $b);
   }
   else if (function_exists('bcadd')) {
-    bcadd($a, $b);
+    return bcadd($a, $b);
   }
 }
 
