X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=samltest%2Fencryption%2FEncryptedAssertionTest.h;fp=samltest%2Fencryption%2FEncryptedAssertionTest.h;h=43eb34c2e5b44de61e10c1f55abd390db2e4a9bc;hp=33d701b3f3e298a937ade8bc14b58adabe6ded2e;hb=e53dc55a477fca86dbb5a4e8e4da1418aaa371e1;hpb=de43a7610906ed3dd35fed75cdb6f714afa906ab 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);