/*
- * 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.
#include "internal.h"
#include <saml/SAMLConfig.h>
#include <saml/saml1/binding/SAMLArtifactType0001.h>
+#include <xmltooling/security/SecurityHelper.h>
using namespace opensaml::saml1p;
using namespace opensaml;
}
void testSAMLArtifactType0001(void) {
- string sourceId = SAMLConfig::getConfig().hashSHA1(providerIdStr.c_str());
+ string sourceId = SecurityHelper::doHash("SHA1", providerIdStr.data(), providerIdStr.length(), false);
auto_ptr<SAMLArtifactType0001> artifact(new SAMLArtifactType0001(sourceId));
auto_ptr<SAMLArtifact> tempArtifact(SAMLArtifact::parse(artifact->encode().c_str()));