/*
- * Copyright (c) 2016-2020 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2023 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Set proxy data to dsigCtx
if (context.isProxyMode && !context.proxySet.empty()) {
LogDebug("Set proxy data to xmlsec1 handle.");
- for (auto data : context.proxySet) {
+ for (auto &data : context.proxySet) {
if (!strcmp(data.c_str(), "#prop"))
continue;
dsigCtx.get()->flags |= XMLSEC_DSIG_FLAGS_SKIP_PROXY;
dsigCtx.get()->flags |= XMLSEC_DSIG_FLAGS_CHECK_PROXY;
- for (auto uri : *m_pList) {
+ for (auto &uri : *m_pList) {
if(xmlSecProxyCtxAdd(&(dsigCtx.get()->checkReferences),
reinterpret_cast<const xmlChar *>(uri.c_str())))
ThrowMsg(Exception::InternalError, "PARTIAL_HASH mode failed.");