X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FEncryptionTest.h;h=3d6c79af268af29eb81ebb7960ca274a90a1daaa;hb=3c0305a173aab448e178cd86e5a1d4df37dd45ea;hp=f3de66ab194470afc20cb321f2d98cb6c5f0686e;hpb=6505807a62569ce65803b448b07a6872c6af2512;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/EncryptionTest.h b/xmltoolingtest/EncryptionTest.h index f3de66a..3d6c79a 100644 --- a/xmltoolingtest/EncryptionTest.h +++ b/xmltoolingtest/EncryptionTest.h @@ -40,9 +40,11 @@ public: m_resolver = XMLToolingConfig::getConfig().CredentialResolverManager.newPlugin( FILESYSTEM_CREDENTIAL_RESOLVER,doc->getDocumentElement() ); + XMLObjectBuilder::registerDefaultBuilder(new UnknownElementBuilder()); } void tearDown() { + XMLObjectBuilder::deregisterDefaultBuilder(); delete m_resolver; } @@ -61,7 +63,7 @@ public: Encrypter encrypter; Encrypter::EncryptionParams ep; - Encrypter::KeyEncryptionParams kep(*cred,DSIGConstants::s_unicodeStrURIRSA_1_5); + Encrypter::KeyEncryptionParams kep(*cred); auto_ptr encData(encrypter.encryptElement(doc->getDocumentElement(),ep,&kep)); string buf;