X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltoolingtest%2FFilesystemCredentialResolverTest.h;h=7eb694900825344ff44a616b3dcc61e7c12210c2;hp=4f358a86eaeaf0f3bedc679737b0517d5f70a20b;hb=e5a84f387d04247eb6938270f0222cf001bb716e;hpb=81c889f9d75296407c30968aa65ca337194f1281 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")); }