You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/12/04 20:08:59 UTC

svn commit: r1817123 - in /santuario/xml-security-cpp/trunk/xsec: dsig/ framework/ xenc/impl/

Author: scantor
Date: Mon Dec  4 20:08:59 2017
New Revision: 1817123

URL: http://svn.apache.org/viewvc?rev=1817123&view=rev
Log:
Add missing const specifiers.

Modified:
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.hpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfo.hpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfoExt.hpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.hpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp
    santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.hpp
    santuario/xml-security-cpp/trunk/xsec/framework/XSECAlgorithmHandler.hpp
    santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp
    santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.hpp

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.cpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.cpp Mon Dec  4 20:08:59 2017
@@ -328,7 +328,7 @@ TXFMBase * addHashTxfm(signatureMethod s
 
 bool DSIGAlgorithmHandlerDefault::appendSignatureHashTxfm(TXFMChain * inputBytes,
 														  const XMLCh * URI,
-														  XSECCryptoKey * key) {
+														  XSECCryptoKey * key) const {
 
 	signatureMethod sm;
 	hashMethod hm;
@@ -364,7 +364,7 @@ unsigned int DSIGAlgorithmHandlerDefault
 		const XMLCh * URI,
 		XSECCryptoKey * key,
 		unsigned int outputLength,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	signatureMethod sm;
 	hashMethod hm;
@@ -558,7 +558,7 @@ bool DSIGAlgorithmHandlerDefault::verify
 		const XMLCh * URI,
 		const char * sig,
 		unsigned int outputLength,
-		XSECCryptoKey * key) {
+		XSECCryptoKey * key) const {
 
 	signatureMethod sm;
 	hashMethod hm;
@@ -678,7 +678,7 @@ bool DSIGAlgorithmHandlerDefault::verify
 
 bool DSIGAlgorithmHandlerDefault::appendHashTxfm(
 		TXFMChain * inputBytes,
-		const XMLCh * URI) {
+		const XMLCh * URI) const {
 
 	hashMethod hm;
 
@@ -738,7 +738,7 @@ unsigned int DSIGAlgorithmHandlerDefault
 		XSECCryptoKey * key,
 		DOMDocument * doc,
 		safeBuffer & result
-		) {
+		) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"DSIGAlgorithmHandlerDefault - Encryption operations not supported");
@@ -750,7 +750,7 @@ bool DSIGAlgorithmHandlerDefault::append
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
-		) {
+		) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"DSIGAlgorithmHandlerDefault - Encryption operations not supported");
@@ -767,7 +767,7 @@ bool DSIGAlgorithmHandlerDefault::encryp
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-		) {
+		) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"DSIGAlgorithmHandlerDefault - Encryption operations not supported");
@@ -782,7 +782,7 @@ XSECCryptoKey * DSIGAlgorithmHandlerDefa
 		const XMLCh * uri,
 		const unsigned char * keyBuffer,
 		unsigned int keyLen
-		) {
+		) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"DSIGAlgorithmHandlerDefault - Key creation operations not supported");

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGAlgorithmHandlerDefault.hpp Mon Dec  4 20:08:59 2017
@@ -56,7 +56,7 @@ public:
 		TXFMChain * inputBytes,
 		const XMLCh * URI,
 		XSECCryptoKey * key
-	);
+	) const;
 
 	virtual unsigned int signToSafeBuffer(
 		TXFMChain * inputBytes,
@@ -64,7 +64,7 @@ public:
 		XSECCryptoKey * key,
 		unsigned int outputLength,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual bool verifyBase64Signature(
 		TXFMChain * inputBytes,
@@ -72,12 +72,12 @@ public:
 		const char * sig,
 		unsigned int outputLength,
 		XSECCryptoKey * key
-	);
+	) const;
 
 	virtual bool appendHashTxfm(
 		TXFMChain * inputBytes,
 		const XMLCh * URI
-	);
+	) const;
 
 	// Unsupported Encryption Operations
 
@@ -87,14 +87,14 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual bool appendDecryptCipherTXFM(
 		TXFMChain * cipherText,
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
-	);
+	) const;
 
 	virtual bool encryptToSafeBuffer(
 		TXFMChain * plainText,
@@ -102,15 +102,13 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual XSECCryptoKey * createKeyForURI(
 		const XMLCh * uri,
 		const unsigned char * keyBuffer,
 		unsigned int keyLen
-	);
-
-private:
+	) const;
 
 };
 

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfo.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfo.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfo.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfo.hpp Mon Dec  4 20:08:59 2017
@@ -126,7 +126,7 @@ public:
 	 * \brief Return the DOMNode that heads up this KeyInfo child
 	 */
 
-	virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *getKeyInfoDOMNode()
+	virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *getKeyInfoDOMNode() const
 		{return mp_keyInfoDOMNode;}
 
 	/**

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfoExt.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfoExt.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfoExt.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGKeyInfoExt.hpp Mon Dec  4 20:08:59 2017
@@ -1,20 +1,20 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF 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
- *
- * 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.
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF 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
+ *
+ * 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.
  */
 
 /*

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.cpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.cpp Mon Dec  4 20:08:59 2017
@@ -170,7 +170,7 @@ DOMElement * DSIGObject::createBlankObje
 // --------------------------------------------------------------------------------
 
 
-const XMLCh * DSIGObject::getId(void) {
+const XMLCh * DSIGObject::getId(void) const {
 
 	if (mp_idAttr != NULL)
 		return mp_idAttr->getNodeValue();
@@ -179,7 +179,7 @@ const XMLCh * DSIGObject::getId(void) {
 
 }
 
-const XMLCh * DSIGObject::getMimeType(void) {
+const XMLCh * DSIGObject::getMimeType(void) const {
 
 	if (mp_mimeTypeAttr != NULL)
 		return mp_mimeTypeAttr->getNodeValue();
@@ -189,7 +189,7 @@ const XMLCh * DSIGObject::getMimeType(vo
 }
 
 
-const XMLCh * DSIGObject::getEncoding(void) {
+const XMLCh * DSIGObject::getEncoding(void) const {
 
 	if (mp_encodingAttr != NULL)
 		return mp_encodingAttr->getNodeValue();
@@ -198,7 +198,7 @@ const XMLCh * DSIGObject::getEncoding(vo
 
 }
 
-const DOMElement * DSIGObject::getElement(void) {
+const DOMElement * DSIGObject::getElement(void) const {
 
 	return (DOMElement *) mp_objectNode;
 

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGObject.hpp Mon Dec  4 20:08:59 2017
@@ -123,7 +123,7 @@ public:
 	 * @returns the URI attribute string for this object
 	 */
 
-	const XMLCh * getId(void);
+	const XMLCh * getId(void) const;
 
 	/**
 	 * \brief Returns the MimeType string of this object
@@ -131,7 +131,7 @@ public:
 	 * @returns a pointer to the buffer containing the Mime Type string
 	 */
 
-	const XMLCh * getMimeType(void);
+	const XMLCh * getMimeType(void) const;
 
 	/**
 	 * \brief Returns the Encoding string of this object
@@ -139,7 +139,7 @@ public:
 	 * @returns a pointer to the buffer containing the Encoding string
 	 */
 
-	const XMLCh * getEncoding(void);
+	const XMLCh * getEncoding(void) const;
 
 	/**
 	 * \brief Returns the Element node for this object
@@ -147,7 +147,7 @@ public:
 	 * @returns the Element node at the head of this object
 	 */
 
-	const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void);
+	const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const;
 
 	//@}
 

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.cpp Mon Dec  4 20:08:59 2017
@@ -429,7 +429,7 @@ void DSIGReference::setType(const XMLCh
 //           isManifest
 // --------------------------------------------------------------------------------
 
-bool DSIGReference::isManifest() {
+bool DSIGReference::isManifest() const {
 
 	return m_isManifest;
 
@@ -439,7 +439,7 @@ bool DSIGReference::isManifest() {
 //           getURI
 // --------------------------------------------------------------------------------
 
-const XMLCh * DSIGReference::getURI() {
+const XMLCh * DSIGReference::getURI() const {
 
 	return mp_URI;
 
@@ -449,7 +449,7 @@ const XMLCh * DSIGReference::getURI() {
 //           getManifestReferenceList
 // --------------------------------------------------------------------------------
 
-DSIGReferenceList * DSIGReference::getManifestReferenceList() {
+DSIGReferenceList * DSIGReference::getManifestReferenceList() const {
 
 	return mp_manifestList;
 
@@ -1469,8 +1469,3 @@ bool DSIGReference::checkHash() {
 	return true;
 
 }
-
-
-
-
-

Modified: santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/dsig/DSIGReference.hpp Mon Dec  4 20:08:59 2017
@@ -322,7 +322,7 @@ public:
 	 * the value of the URI stored inthe reference
 	 */
 
-	const XMLCh * getURI();
+	const XMLCh * getURI() const;
 
 	/**
 	 * \brief Get the Digest method
@@ -332,7 +332,7 @@ public:
 	 * @returns the hashMethod
 	 */
 
-	hashMethod getHashMethod(void) {
+	hashMethod getHashMethod(void) const {
 		return me_hashMethod;
 	}
 
@@ -354,7 +354,7 @@ public:
 	 * obtain information about the transforms and also change the the transforms
 	 */
 
-	DSIGTransformList * getTransforms(void) {
+	DSIGTransformList * getTransforms(void) const {
 		return mp_transformList;
 	}
 
@@ -364,7 +364,7 @@ public:
 	 * @returns true iff the Reference element is a Manifest reference
 	 */
 	
-	bool isManifest();
+	bool isManifest() const;
 
 	/**
 	 * \brief Get the Manifest
@@ -373,7 +373,7 @@ public:
 	 * list of this reference element.
 	 */
 
-	DSIGReferenceList * getManifestReferenceList();		// Return list of references for a manifest object
+	DSIGReferenceList * getManifestReferenceList() const;		// Return list of references for a manifest object
 
 
 	//@}

Modified: santuario/xml-security-cpp/trunk/xsec/framework/XSECAlgorithmHandler.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/framework/XSECAlgorithmHandler.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/framework/XSECAlgorithmHandler.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/framework/XSECAlgorithmHandler.hpp Mon Dec  4 20:08:59 2017
@@ -119,7 +119,7 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	) = 0;
+	) const = 0;
 
 	//@}
 
@@ -154,7 +154,7 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	) = 0;
+	) const = 0;
 
 	/**
 	 * \brief Append an appropriate decrypt TXFMer to a cipher txfm chain.
@@ -183,7 +183,7 @@ public:
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
-	) = 0;
+	) const = 0;
 
 
 	//@}
@@ -219,7 +219,7 @@ public:
 		XSECCryptoKey * key,
 		unsigned int outputLength,
 		safeBuffer & result
-	) = 0;
+	) const = 0;
 
 	/**
 	 * \brief Validate a signature using an input TXFMChain
@@ -246,7 +246,7 @@ public:
 		const char * sig,
 		unsigned int outputLength,
 		XSECCryptoKey * key
-	) = 0;
+	) const = 0;
 
 	//@}
 
@@ -269,7 +269,7 @@ public:
 		TXFMChain * inputBytes,
 		const XMLCh * URI,
 		XSECCryptoKey * key
-	) = 0;
+	) const = 0;
 
 	/**
 	 * \brief Append a hash to a TXFM Chain based on URI
@@ -286,7 +286,7 @@ public:
 	virtual bool appendHashTxfm(
 		TXFMChain * inputBytes,
 		const XMLCh * URI
-	) = 0;
+	) const = 0;
 
 	//@}
 
@@ -308,7 +308,7 @@ public:
 		const XMLCh * uri,
 		const unsigned char * keyBuffer,
 		unsigned int keyLen
-	) = 0;
+	) const = 0;
 
 	//@}
 

Modified: santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.cpp Mon Dec  4 20:08:59 2017
@@ -85,7 +85,7 @@ void XENCAlgorithmHandlerDefault::mapURI
 											  XSECCryptoSymmetricKey::SymmetricKeyType &skt,
 											  bool &isSymmetricKeyWrap,
                                               XSECCryptoSymmetricKey::SymmetricKeyMode &skm,
-                                              unsigned int& taglen) {
+                                              unsigned int& taglen) const {
 
 	if (key == NULL) {
 		throw XSECException(XSECException::CipherError, 
@@ -206,7 +206,7 @@ void XENCAlgorithmHandlerDefault::mapURI
 unsigned int XENCAlgorithmHandlerDefault::unwrapKeyAES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// Cat the encrypted key
 	XMLByte buf[_MY_MAX_KEY_SIZE];
@@ -282,7 +282,7 @@ unsigned int XENCAlgorithmHandlerDefault
 bool XENCAlgorithmHandlerDefault::wrapKeyAES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// get the raw key
 	XMLByte buf[_MY_MAX_KEY_SIZE + 8];
@@ -378,7 +378,7 @@ bool XENCAlgorithmHandlerDefault::wrapKe
 unsigned int XENCAlgorithmHandlerDefault::unwrapKey3DES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// Perform an unwrap on the key
 	safeBuffer cipherSB;
@@ -457,7 +457,7 @@ unsigned int XENCAlgorithmHandlerDefault
 bool XENCAlgorithmHandlerDefault::wrapKey3DES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// Cat the plaintext key
 	XMLByte buf[_MY_MAX_KEY_SIZE + 16];
@@ -561,7 +561,7 @@ bool XENCAlgorithmHandlerDefault::append
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
-		) {
+		) const {
 
 	// We only support this for bulk Symmetric key algorithms
 
@@ -611,7 +611,7 @@ unsigned int XENCAlgorithmHandlerDefault
 		TXFMChain * cipherText,
 		XSECCryptoKey * key,
         unsigned int taglen,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// Only works with symmetric key
     if (key->getKeyType() != XSECCryptoKey::KEY_SYMMETRIC) {
@@ -673,7 +673,7 @@ unsigned int XENCAlgorithmHandlerDefault
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		DOMDocument * doc,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	// Only works with RSA_PRIVATE or PAIR
 	if (key->getKeyType() == XSECCryptoKey::KEY_RSA_PUBLIC) {
@@ -807,7 +807,7 @@ unsigned int XENCAlgorithmHandlerDefault
 		XSECCryptoKey * key,
 		DOMDocument * doc,
 		safeBuffer & result
-		) {
+		) const {
 
 	XSECCryptoKey::KeyType kt;
 	XSECCryptoSymmetricKey::SymmetricKeyType skt;
@@ -905,7 +905,7 @@ bool XENCAlgorithmHandlerDefault::doRSAE
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-		) {
+		) const {
 
 	// Only works with RSA_PRIVATE or PAIR
 	if (key->getKeyType() == XSECCryptoKey::KEY_RSA_PRIVATE) {
@@ -1048,7 +1048,7 @@ bool XENCAlgorithmHandlerDefault::encryp
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-		) {
+		) const {
 
 	XSECCryptoKey::KeyType kt;
 	XSECCryptoSymmetricKey::SymmetricKeyType skt;
@@ -1128,7 +1128,7 @@ XSECCryptoKey * XENCAlgorithmHandlerDefa
 		const XMLCh * uri,
 		const unsigned char * keyBuffer,
 		unsigned int keyLen
-		) {
+		) const {
 
 	XSECCryptoSymmetricKey * sk = NULL;
 
@@ -1190,7 +1190,7 @@ unsigned int XENCAlgorithmHandlerDefault
 		const XMLCh * URI,
 		XSECCryptoKey * key,
 		unsigned int outputLength,
-		safeBuffer & result) {
+		safeBuffer & result) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"XENCAlgorithmHandlerDefault - Signature operations not supported");
@@ -1201,7 +1201,7 @@ unsigned int XENCAlgorithmHandlerDefault
 bool XENCAlgorithmHandlerDefault::appendSignatureHashTxfm(
 		TXFMChain * inputBytes,
 		const XMLCh * URI,
-		XSECCryptoKey * key) {
+		XSECCryptoKey * key) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"XENCAlgorithmHandlerDefault - Signature operations not supported");
@@ -1213,7 +1213,7 @@ bool XENCAlgorithmHandlerDefault::verify
 		const XMLCh * URI,
 		const char * sig,
 		unsigned int outputLength,
-		XSECCryptoKey * key) {
+		XSECCryptoKey * key) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"XENCAlgorithmHandlerDefault - Signature operations not supported");
@@ -1222,10 +1222,9 @@ bool XENCAlgorithmHandlerDefault::verify
 
 bool XENCAlgorithmHandlerDefault::appendHashTxfm(
 		TXFMChain * inputBytes,
-		const XMLCh * URI) {
+		const XMLCh * URI) const {
 
 	throw XSECException(XSECException::AlgorithmMapperError, 
 			"XENCAlgorithmHandlerDefault - Hash operations not supported");
 
 }
-

Modified: santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.hpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.hpp?rev=1817123&r1=1817122&r2=1817123&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.hpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCAlgorithmHandlerDefault.hpp Mon Dec  4 20:08:59 2017
@@ -54,14 +54,14 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual bool appendDecryptCipherTXFM(
 		TXFMChain * cipherText,
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc
-	);
+	) const;
 
 	virtual bool encryptToSafeBuffer(
 		TXFMChain * plainText,
@@ -69,13 +69,13 @@ public:
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual XSECCryptoKey * createKeyForURI(
 		const XMLCh * uri,
 		const unsigned char * keyBuffer,
 		unsigned int keyLen
-	);
+	) const;
 
 	virtual XSECAlgorithmHandler * clone(void) const;
 
@@ -87,13 +87,13 @@ public:
 		XSECCryptoKey * key,
 		unsigned int outputLength,
 		safeBuffer & result
-	);
+	) const;
 
 	virtual bool appendSignatureHashTxfm(
 		TXFMChain * inputBytes,
 		const XMLCh * URI,
 		XSECCryptoKey * key
-	);
+	) const;
 
 	virtual bool verifyBase64Signature(
 		TXFMChain * inputBytes,
@@ -101,12 +101,12 @@ public:
 		const char * sig,
 		unsigned int outputLength,
 		XSECCryptoKey * key
-	);
+	) const;
 
 	virtual bool appendHashTxfm(
 		TXFMChain * inputBytes,
 		const XMLCh * URI
-	);
+	) const;
 
 
 	
@@ -118,40 +118,47 @@ private:
 		XSECCryptoSymmetricKey::SymmetricKeyType &skt,
 		bool &isSymmetricKeyWrap,
         XSECCryptoSymmetricKey::SymmetricKeyMode &skm,
-        unsigned int& taglen);
+        unsigned int& taglen) const;
+
 	unsigned int doRSADecryptToSafeBuffer(
 		TXFMChain * cipherText,
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	bool doRSAEncryptToSafeBuffer(
 		TXFMChain * plainText,
 		XENCEncryptionMethod * encryptionMethod,
 		XSECCryptoKey * key,
 		XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument * doc,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	unsigned int doGCMDecryptToSafeBuffer(
 		TXFMChain * cipherText,
 		XSECCryptoKey * key,
         unsigned int taglen,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	unsigned int unwrapKeyAES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	unsigned int unwrapKey3DES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	bool wrapKeyAES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result);
+		safeBuffer & result) const;
+
 	bool wrapKey3DES(
    		TXFMChain * cipherText,
 		XSECCryptoKey * key,
-		safeBuffer & result);
+		safeBuffer & result) const;
 };
 
 /*\@}*/