[xmltooling] 13/24: Eliminate encryptionMethod xmlsec constant.

Etienne Dysli Metref edm-guest at moszumanska.debian.org
Fri Jan 12 15:53:57 UTC 2018


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

edm-guest pushed a commit to branch master
in repository xmltooling.

commit 886774afbba4839d64bbbd58b8906b67887dd1bd
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   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()));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xmltooling.git



More information about the Pkg-shibboleth-devel mailing list