X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fencryption%2Fimpl%2FEncrypter.cpp;h=1ede2a2f10fdc18f07596fc010fe5fc553c1fdfe;hb=9a297139a7c2cea14cc6a6033f2b238741942323;hp=d4830cc4b4544805fbd8a9de68700f9aee81bff6;hpb=fb67842a358b830f18eb0ba008b8d294cf273d3c;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/encryption/impl/Encrypter.cpp b/xmltooling/encryption/impl/Encrypter.cpp index d4830cc..1ede2a2 100644 --- a/xmltooling/encryption/impl/Encrypter.cpp +++ b/xmltooling/encryption/impl/Encrypter.cpp @@ -199,6 +199,10 @@ EncryptedData* Encrypter::decorateAndUnmarshall(EncryptionParams& encParams, Key xmlEncKey->releaseThisAndChildrenDOM(); + // Recipient? + if (kencParams->m_recipient) + xmlEncKey->setRecipient(kencParams->m_recipient); + // KeyInfo? if (kencParams->m_keyInfo) { xmlEncKey->setKeyInfo(kencParams->m_keyInfo); @@ -239,6 +243,10 @@ EncryptedKey* Encrypter::encryptKey(const unsigned char* keyBuffer, unsigned int xmlEncKey->releaseThisAndChildrenDOM(); + // Recipient? + if (kencParams.m_recipient) + xmlEncKey->setRecipient(kencParams.m_recipient); + // KeyInfo? if (kencParams.m_keyInfo) { xmlEncKey->setKeyInfo(kencParams.m_keyInfo);