diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2015-04-16 15:34:43 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2015-04-16 15:34:43 +0200 |
commit | 4f7e78f6b4d7e8cc7dea613f3beb45004776dfa3 (patch) | |
tree | 8429579ec683bcde2eab1bb990aaf5fec6dc11bf /modules/saml/lib/Auth/Process/SQLPersistentNameID.php | |
parent | 1b2e51643d9d63bc99f1781939d8763dfe3d31c1 (diff) | |
download | simplesamlphp-4f7e78f6b4d7e8cc7dea613f3beb45004776dfa3.zip simplesamlphp-4f7e78f6b4d7e8cc7dea613f3beb45004776dfa3.tar.gz simplesamlphp-4f7e78f6b4d7e8cc7dea613f3beb45004776dfa3.tar.bz2 |
Schedule SimpleSAML_Utilities::stringToHex() for removal. Deprecate and stop using it.
Diffstat (limited to 'modules/saml/lib/Auth/Process/SQLPersistentNameID.php')
-rw-r--r-- | modules/saml/lib/Auth/Process/SQLPersistentNameID.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/saml/lib/Auth/Process/SQLPersistentNameID.php b/modules/saml/lib/Auth/Process/SQLPersistentNameID.php index ebfab8e..767aec3 100644 --- a/modules/saml/lib/Auth/Process/SQLPersistentNameID.php +++ b/modules/saml/lib/Auth/Process/SQLPersistentNameID.php @@ -81,7 +81,7 @@ class sspmod_saml_Auth_Process_SQLPersistentNameID extends sspmod_saml_BaseNameI throw new sspmod_saml_Error(SAML2_Const::STATUS_RESPONDER, 'urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy'); } - $value = SimpleSAML_Utilities::stringToHex(openssl_random_pseudo_bytes(20)); + $value = bin2hex(openssl_random_pseudo_bytes(20)); SimpleSAML_Logger::debug('SQLPersistentNameID: Created persistent NameID ' . var_export($value, TRUE) . ' for user ' . var_export($uid, TRUE) . '.'); sspmod_saml_IdP_SQLNameID::add($idpEntityId, $spEntityId, $uid, $value); |