From e53dc55a477fca86dbb5a4e8e4da1418aaa371e1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Sun, 24 Jun 2012 20:17:19 +0000 Subject: [PATCH] Use GCM in test when possible. --- samltest/encryption/EncryptedAssertionTest.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 2.1.4