X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2FSAMLArtifactCreationTest.h;h=be54b2d1a0e5777568252701d04311891f1aea39;hp=e0c47ff6b9ccd77898ee071c48d80a894b931388;hb=840b05eda26529a8c06790960bbb227162523309;hpb=bd393dcbca1f5e4365535841f2b10e02859e3f87 diff --git a/samltest/SAMLArtifactCreationTest.h b/samltest/SAMLArtifactCreationTest.h index e0c47ff..be54b2d 100644 --- a/samltest/SAMLArtifactCreationTest.h +++ b/samltest/SAMLArtifactCreationTest.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2009 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ #include #include #include +#include using namespace opensaml::saml1p; using namespace opensaml::saml2p; @@ -43,7 +44,9 @@ public: SAMLArtifactType0001 artifact1(sourceId,handle); //printResults(artifact1); - SAMLArtifactType0001 artifact2(conf.hashSHA1(providerIdStr.c_str()),handle); + SAMLArtifactType0001 artifact2( + SecurityHelper::doHash("SHA1", providerIdStr.data(), providerIdStr.length(), false), handle + ); //printResults(artifact2,providerIdStr.c_str()); } @@ -53,7 +56,9 @@ public: } void testSAMLArtifactType0004(void) { - SAML2ArtifactType0004 artifact(SAMLConfig::getConfig().hashSHA1(providerIdStr.c_str()),666,handle); + SAML2ArtifactType0004 artifact( + SecurityHelper::doHash("SHA1", providerIdStr.data(), providerIdStr.length(), false), 666, handle + ); //printResults(artifact,providerIdStr.c_str()); }