Fix constness on algorithm handlers.
git-svn-id: https://svn.apache.org/repos/asf/santuario/xml-security-cpp/trunk@1826290 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xsec/xkms/impl/XKMSRecoverResultImpl.cpp b/xsec/xkms/impl/XKMSRecoverResultImpl.cpp
index fe80185..3415bdf 100644
--- a/xsec/xkms/impl/XKMSRecoverResultImpl.cpp
+++ b/xsec/xkms/impl/XKMSRecoverResultImpl.cpp
@@ -265,9 +265,7 @@
}
// Now find if we can get an algorithm for this URI
- XSECAlgorithmHandler *handler;
-
- handler =
+ const XSECAlgorithmHandler *handler =
XSECPlatformUtils::g_algorithmMapper->mapURIToHandler(
xed->getEncryptionMethod()->getAlgorithm());
@@ -316,7 +314,7 @@
// XML
// Find if we can get an algorithm for this URI
- XSECAlgorithmHandler *handler =
+ const XSECAlgorithmHandler *handler =
XSECPlatformUtils::g_algorithmMapper->mapURIToHandler(algorithmURI);
if (handler == NULL) {
diff --git a/xsec/xkms/impl/XKMSRegisterResultImpl.cpp b/xsec/xkms/impl/XKMSRegisterResultImpl.cpp
index dd78694..631b2d7 100644
--- a/xsec/xkms/impl/XKMSRegisterResultImpl.cpp
+++ b/xsec/xkms/impl/XKMSRegisterResultImpl.cpp
@@ -265,9 +265,7 @@
}
// Now find if we can get an algorithm for this URI
- XSECAlgorithmHandler *handler;
-
- handler =
+ const XSECAlgorithmHandler *handler =
XSECPlatformUtils::g_algorithmMapper->mapURIToHandler(
xed->getEncryptionMethod()->getAlgorithm());
@@ -316,7 +314,7 @@
// XML
// Find if we can get an algorithm for this URI
- XSECAlgorithmHandler *handler =
+ const XSECAlgorithmHandler *handler =
XSECPlatformUtils::g_algorithmMapper->mapURIToHandler(
algorithmURI);