From: scantor Date: Sun, 24 Jun 2012 20:17:19 +0000 (+0000) Subject: Use GCM in test when possible. X-Git-Tag: 2.5.0~9 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=commitdiff_plain;h=da5e7e5a18cb6f6c4fccb29325703bfb3b7a6fb0 Use GCM in test when possible. git-svn-id: https://svn.shibboleth.net/cpp-opensaml/branches/REL_2@734 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0 --- diff --git a/samltest/encryption/EncryptedAssertionTest.h b/samltest/encryption/EncryptedAssertionTest.h index 33d701b..43eb34c 100644 --- a/samltest/encryption/EncryptedAssertionTest.h +++ b/samltest/encryption/EncryptedAssertionTest.h @@ -29,6 +29,7 @@ #include #include #include +#include using namespace opensaml::saml2md; using namespace opensaml::saml2; @@ -125,8 +126,12 @@ public: vector< pair > recipients( 1, pair(m_metadata, &mcc) ); +#ifdef XSEC_OPENSSL_HAVE_GCM + encrypted->encrypt(*assertion.get(), recipients, false, DSIGConstants::s_unicodeStrURIAES256_GCM); +#else encrypted->encrypt(*assertion.get(), recipients); - +#endif + // Roundtrip it. string buf; XMLHelper::serialize(encrypted->marshall(), buf);