[cpp-sp] branch main updated: Remove unused static function.

Codeberg noreply at shibboleth.net
Thu Sep 3 17:21:07 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/72b3f698e7a87c405294b464e7cd9cf63ea545f1

The following commit(s) were added to refs/heads/main by this push:
     new 72b3f698 Remove unused static function.
72b3f698 is described below

commit 72b3f698e7a87c405294b464e7cd9cf63ea545f1
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Thu Sep 3 13:20:57 2026 -0400

    Remove unused static function.
---
 shibsp/handler/impl/AbstractHandler.cpp | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/shibsp/handler/impl/AbstractHandler.cpp b/shibsp/handler/impl/AbstractHandler.cpp
index a021e200..59bafd8b 100644
--- a/shibsp/handler/impl/AbstractHandler.cpp
+++ b/shibsp/handler/impl/AbstractHandler.cpp
@@ -57,22 +57,6 @@ namespace shibsp {
     extern SHIBSP_DLLLOCAL PluginManager< Handler,string,pair<ptree&,const char*> >::Factory TokenConsumerFactory;
     extern SHIBSP_DLLLOCAL PluginManager< Handler,string,pair<ptree&,const char*> >::Factory LogoutInitiatorFactory;
     extern SHIBSP_DLLLOCAL PluginManager< Handler,string,pair<ptree&,const char*> >::Factory LogoutConsumerFactory;
-
-    void SHIBSP_DLLLOCAL generateRandomHex(std::string& buf, unsigned int len) {
-        static char DIGITS[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
-        int r;
-        unsigned char b1,b2;
-        buf.erase();
-        for (unsigned int i=0; i<len; i+=4) {
-            r = rand();
-            b1 = (0x00FF & r);
-            b2 = (0xFF00 & r)  >> 8;
-            buf += (DIGITS[(0xF0 & b1) >> 4 ]);
-            buf += (DIGITS[0x0F & b1]);
-            buf += (DIGITS[(0xF0 & b2) >> 4 ]);
-            buf += (DIGITS[0x0F & b2]);
-        }
-    }
 };
 
 void SHIBSP_API shibsp::registerHandlers()

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list