X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FFilesystemCredentialResolverTest.h;h=7eb694900825344ff44a616b3dcc61e7c12210c2;hb=4a4b8fd387a7c03b4ea3d052104c8ca70ceb4a35;hp=4f358a86eaeaf0f3bedc679737b0517d5f70a20b;hpb=81c889f9d75296407c30968aa65ca337194f1281;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/FilesystemCredentialResolverTest.h b/xmltoolingtest/FilesystemCredentialResolverTest.h index 4f358a8..7eb6949 100644 --- a/xmltoolingtest/FilesystemCredentialResolverTest.h +++ b/xmltoolingtest/FilesystemCredentialResolverTest.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. @@ -43,8 +43,8 @@ public: Locker locker(credResolver.get()); const X509Credential* cred=dynamic_cast(credResolver->resolve()); - TSM_ASSERT("Retrieved credential was null", cred!=NULL); - TSM_ASSERT("Retrieved key was null", cred->getPrivateKey()!=NULL); + TSM_ASSERT("Retrieved credential was null", cred!=nullptr); + TSM_ASSERT("Retrieved key was null", cred->getPrivateKey()!=nullptr); TSM_ASSERT_EQUALS("Unexpected number of certificates", 1, cred->getEntityCertificateChain().size()); TSM_ASSERT_EQUALS("Custom key name not found", 1, cred->getKeyNames().count("Sample Key")); }