[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/mollom/ -> mollom.inc (summary)

(no description)

File Size: 113 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  _mollom_authentication()
  _mollom_retrieve_server_list()

Functions
Functions that are not part of a class:

_mollom_authentication($public_key = NULL, $private_key = NULL)   X-Ref
Generate authentication data for XML-RPC communication with Mollom servers.

This function generates an array with all information required to
authenticate against Mollom.  To prevent forged requests where you are
impersonated, each request is signed with a hash based on a private
key and a timestamp.

Both the client and the server share the secret key used to create
the authentication hash.  They both hash a timestamp with the secret
key, and if the hashes match, the authenticity of the message is
validated.

To avoid someone intercepting a (hash, timestamp)-pair and using it
to impersonate a client, Mollom reject any request where the timestamp
is more than 15 minutes off.

Make sure your server's time is synchronized with the world clocks,
and that you don't share your private key with anyone else.

param: $public_key
param: $private_key

_mollom_retrieve_server_list()   X-Ref
Refreshes the list of Mollom's XML-RPC servers.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7