X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fsaml2%2Fbinding%2FSAML2ArtifactTest.h;h=1c390e76355e6e2c90a31dea87e42f486fba5cef;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=0c404b427e47ac79241db78cc21a2efd112ad55c;hpb=840b05eda26529a8c06790960bbb227162523309;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/saml2/binding/SAML2ArtifactTest.h b/samltest/saml2/binding/SAML2ArtifactTest.h index 0c404b4..1c390e7 100644 --- a/samltest/saml2/binding/SAML2ArtifactTest.h +++ b/samltest/saml2/binding/SAML2ArtifactTest.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,15 +56,15 @@ public: cc.setUsage(Credential::SIGNING_CREDENTIAL); Locker clocker(m_creds); const Credential* cred = m_creds->resolve(&cc); - TSM_ASSERT("Retrieved credential was null", cred!=NULL); + TSM_ASSERT("Retrieved credential was null", cred!=nullptr); // Freshen timestamp. - toSend->setIssueInstant(time(NULL)); + toSend->setIssueInstant(time(nullptr)); // Encode message. auto_ptr encoder( SAMLConfig::getConfig().MessageEncoderManager.newPlugin( - samlconstants::SAML20_BINDING_HTTP_ARTIFACT, pair(NULL,NULL) + samlconstants::SAML20_BINDING_HTTP_ARTIFACT, pair(nullptr,nullptr) ) ); Locker locker(m_metadata); @@ -83,7 +83,7 @@ public: string relayState; auto_ptr decoder( SAMLConfig::getConfig().MessageDecoderManager.newPlugin( - samlconstants::SAML20_BINDING_HTTP_ARTIFACT, pair(NULL,NULL) + samlconstants::SAML20_BINDING_HTTP_ARTIFACT, pair(nullptr,nullptr) ) ); decoder->setArtifactResolver(this); @@ -134,7 +134,7 @@ public: XMLObject* xmlObject = SAMLConfig::getConfig().getArtifactMap()->retrieveContent(&artifact, "https://sp.example.org/"); Response* payload = dynamic_cast(xmlObject); - TSM_ASSERT("Not a response.", payload!=NULL); + TSM_ASSERT("Not a response.", payload!=nullptr); auto_ptr response(ArtifactResponseBuilder::buildArtifactResponse()); response->setPayload(payload);