From 4fbf5faee2b0449233476885bd57536a3b7df7a1 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 9 Jul 2010 12:41:27 +0000 Subject: [PATCH] Remove SimpleSAML_Utilities::cert_fingerprint. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2403 44740490-163a-0410-bde0-09ae8108e29a --- docs/simplesamlphp-changelog.txt | 1 + lib/SimpleSAML/Utilities.php | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/simplesamlphp-changelog.txt b/docs/simplesamlphp-changelog.txt index 1ee2fe9eb..94fe7be47 100644 --- a/docs/simplesamlphp-changelog.txt +++ b/docs/simplesamlphp-changelog.txt @@ -22,6 +22,7 @@ See the upgrade notes for specific information about upgrading. * `SimpleSAML_Utilities::getRequestURI` * `SimpleSAML_Utilities::getScriptName` * `SimpleSAML_Utilities::getSelfProtocol` + * `SimpleSAML_Utilities::cert_fingerprint` * `SimpleSAML_Metadata_MetaDataStorageHandlerSAML2Meta` * Moved function from Utilities-class to more appropriate locations. * `getAuthority` to `SimpleSAML_IdP` diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index 9b937d885..203250748 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -240,12 +240,8 @@ class SimpleSAML_Utilities { } return TRUE; } - - public static function cert_fingerprint($pem) { - $x509data = base64_decode( $pem ); - return strtolower( sha1( $x509data ) ); - } - + + public static function generateID() { return '_' . self::stringToHex(self::generateRandomBytes(21)); } -- GitLab