X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Fencryption%2FEncryptedAssertionTest.h;h=43eb34c2e5b44de61e10c1f55abd390db2e4a9bc;hb=db44995ea6c326dcb51387a888da823c5d86c866;hp=29106bebc43cf0ce80b158ab7201e7aafdc22db5;hpb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/encryption/EncryptedAssertionTest.h b/samltest/encryption/EncryptedAssertionTest.h index 29106be..43eb34c 100644 --- a/samltest/encryption/EncryptedAssertionTest.h +++ b/samltest/encryption/EncryptedAssertionTest.h @@ -1,17 +1,21 @@ -/* - * Copyright 2001-2010 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. * - * http://www.apache.org/licenses/LICENSE-2.0 + * UCAID licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the + * License at * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. */ #include "signature/SAMLSignatureTestBase.h" @@ -25,6 +29,7 @@ #include #include #include +#include using namespace opensaml::saml2md; using namespace opensaml::saml2; @@ -121,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);