[cpp-xmltooling] branch master updated: Eliminate encryptionMethod xmlsec constant.

Scott Cantor cantor.2 at osu.edu
Tue Dec 5 14:32:15 EST 2017


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=886774afbba4839d64bbbd58b8906b67887dd1bd

The following commit(s) were added to refs/heads/master by this push:
       new  886774a   Eliminate encryptionMethod xmlsec constant.
886774a is described below

commit 886774afbba4839d64bbbd58b8906b67887dd1bd
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 5 14:32:12 2017 -0500

    Eliminate encryptionMethod xmlsec constant.
---
 xmltooling/encryption/impl/Encrypter.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/xmltooling/encryption/impl/Encrypter.cpp b/xmltooling/encryption/impl/Encrypter.cpp
index 6e0856b..2883509 100644
--- a/xmltooling/encryption/impl/Encrypter.cpp
+++ b/xmltooling/encryption/impl/Encrypter.cpp
@@ -146,7 +146,7 @@ EncryptedData* Encrypter::encryptElement(DOMElement* element, EncryptionParams&
     
     try {
         checkParams(encParams,kencParams);
-        m_cipher->encryptElementDetached(element, ENCRYPT_NONE, encParams.m_algorithm);
+        m_cipher->encryptElementDetached(element, encParams.m_algorithm);
         return decorateAndUnmarshall(encParams, kencParams);
     }
     catch(XSECException& e) {
@@ -174,7 +174,7 @@ EncryptedData* Encrypter::encryptElementContent(DOMElement* element, EncryptionP
     
     try {
         checkParams(encParams,kencParams);
-        m_cipher->encryptElementContentDetached(element, ENCRYPT_NONE, encParams.m_algorithm);
+        m_cipher->encryptElementContentDetached(element, encParams.m_algorithm);
         return decorateAndUnmarshall(encParams, kencParams);
     }
     catch(XSECException& e) {
@@ -204,7 +204,7 @@ EncryptedData* Encrypter::encryptStream(istream& input, EncryptionParams& encPar
         
         checkParams(encParams,kencParams);
         StreamInputSource::StreamBinInputStream xstream(input);
-        m_cipher->encryptBinInputStream(&xstream, ENCRYPT_NONE, encParams.m_algorithm);
+        m_cipher->encryptBinInputStream(&xstream, encParams.m_algorithm);
         return decorateAndUnmarshall(encParams, kencParams);
     }
     catch(XSECException& e) {
@@ -249,7 +249,7 @@ EncryptedData* Encrypter::decorateAndUnmarshall(EncryptionParams& encParams, Key
         m_cipher->setKEK(kek->clone());
         // ownership of this belongs to us, for some reason...
         auto_ptr<XENCEncryptedKey> encKey(
-            m_cipher->encryptKey(encParams.m_keyBuffer, encParams.m_keyBufferSize, ENCRYPT_NONE, kencParams->m_algorithm)
+            m_cipher->encryptKey(encParams.m_keyBuffer, encParams.m_keyBufferSize, kencParams->m_algorithm)
             );
         EncryptedKey* xmlEncKey=nullptr;
         auto_ptr<XMLObject> xmlObjectKey(XMLObjectBuilder::buildOneFromElement(encKey->getElement()));
@@ -303,7 +303,7 @@ EncryptedKey* Encrypter::encryptKey(
         m_cipher=XMLToolingInternalConfig::getInternalConfig().m_xsecProvider->newCipher(doc);
         m_cipher->setExclusiveC14nSerialisation(false);
         m_cipher->setKEK(kek->clone());
-        auto_ptr<XENCEncryptedKey> encKey(m_cipher->encryptKey(keyBuffer, keyBufferSize, ENCRYPT_NONE, kencParams.m_algorithm));
+        auto_ptr<XENCEncryptedKey> encKey(m_cipher->encryptKey(keyBuffer, keyBufferSize, kencParams.m_algorithm));
         
         EncryptedKey* xmlEncKey=nullptr;
         auto_ptr<XMLObject> xmlObjectKey(XMLObjectBuilder::buildOneFromElement(encKey->getElement()));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list