From 6ec8ff2d1f649d793dfe78142fb4f7884458d494 Mon Sep 17 00:00:00 2001 From: cantor Date: Mon, 27 Dec 2010 15:43:20 +0000 Subject: [PATCH] https://bugs.internet2.edu/jira/browse/SSPCPP-329 git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3389 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/handler/impl/AbstractHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shibsp/handler/impl/AbstractHandler.cpp b/shibsp/handler/impl/AbstractHandler.cpp index a27b5ce..38c7d92 100644 --- a/shibsp/handler/impl/AbstractHandler.cpp +++ b/shibsp/handler/impl/AbstractHandler.cpp @@ -225,7 +225,7 @@ void Handler::preserveRelayState(const Application& application, HTTPResponse& r StorageService* storage = application.getServiceProvider().getStorageService(mech.second); if (storage) { string rsKey; - generateRandomHex(rsKey,5); + generateRandomHex(rsKey,32); if (!storage->createString("RelayState", rsKey.c_str(), relayState.c_str(), time(nullptr) + 600)) throw IOException("Attempted to insert duplicate storage key."); relayState = string(mech.second-3) + ':' + rsKey; -- 2.1.4