From: Scott Cantor Date: Sun, 24 Jun 2012 20:17:19 +0000 (+0000) Subject: Use GCM in test when possible. X-Git-Tag: 2.5.0~8 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=e53dc55a477fca86dbb5a4e8e4da1418aaa371e1 Use GCM in test when possible. --- 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);