summaryrefslogtreecommitdiff
path: root/modules/openid
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-26 17:12:55 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-26 17:12:55 +0000
commitc529e4afbece1355bee882500faf2fd0c059048a (patch)
treea4fbe98ab46c3ae8f2c9ff6d085cca8eb3c009fe /modules/openid
parent035713ea5c2f2aba2d5f9827dceb7c504c11de2e (diff)
downloadbrdo-c529e4afbece1355bee882500faf2fd0c059048a.tar.gz
brdo-c529e4afbece1355bee882500faf2fd0c059048a.tar.bz2
- Patch #101543 by webchick: document all constants.
Diffstat (limited to 'modules/openid')
-rw-r--r--modules/openid/openid.inc33
1 files changed, 30 insertions, 3 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc
index c39cd8e40..452a9aded 100644
--- a/modules/openid/openid.inc
+++ b/modules/openid/openid.inc
@@ -6,21 +6,48 @@
* OpenID utility functions.
*/
-// Diffie-Hellman Key Exchange Default Value.
+/**
+ * Diffie-Hellman Key Exchange Default Value.
+ *
+ * This is used to establish an association between the Relying Party and the
+ * OpenID Provider.
+ *
+ * See RFC 2631: http://www.ietf.org/rfc/rfc2631.txt
+ */
define('OPENID_DH_DEFAULT_MOD', '155172898181473697471232257763715539915724801' .
'966915404479707795314057629378541917580651227423698188993727816152646631' .
'438561595825688188889951272158842675419950341258706556549803580104870537' .
'681476726513255747040765857479291291572334510643245094715007229621094194' .
'349783925984760375594985848253359305585439638443');
-// Constants for Diffie-Hellman key exchange computations.
+/**
+ * Diffie-Hellman generator; used for Diffie-Hellman key exchange computations.
+ */
define('OPENID_DH_DEFAULT_GEN', '2');
+
+/**
+ * SHA-1 hash block size; used for Diffie-Hellman key exchange computations.
+ */
define('OPENID_SHA1_BLOCKSIZE', 64);
+
+/**
+ * Random number generator; used for Diffie-Hellman key exchange computations.
+ */
define('OPENID_RAND_SOURCE', '/dev/urandom');
-// OpenID namespace URLs
+/**
+ * OpenID Authentication 2.0 namespace URL.
+ */
define('OPENID_NS_2_0', 'http://specs.openid.net/auth/2.0');
+
+/**
+ * OpenID Authentication 1.1 namespace URL; used for backwards-compatibility.
+ */
define('OPENID_NS_1_1', 'http://openid.net/signon/1.1');
+
+/**
+ * OpenID Authentication 1.0 namespace URL; used for backwards-compatibility.
+ */
define('OPENID_NS_1_0', 'http://openid.net/signon/1.0');
/**