lib3mf 2.5 :

- aggiornamento versione
- utilizzate le nostre librerie esterne libzip e zlib e non quelle incluse in lib3mf.
This commit is contained in:
SaraP
2026-08-25 12:44:11 +02:00
parent ea6efc1e36
commit 513f08e691
544 changed files with 52634 additions and 30760 deletions
@@ -41,7 +41,7 @@ NMR_ModelReaderNode_KeyStoreCipherValue.h defines the Model Reader Node class th
#include "Common/NMR_StringUtils.h"
#include "Model/Reader/NMR_ModelReaderNode_StringValue.h"
#include "Libraries/cpp-base64/base64.h"
#include "base64.h"
namespace NMR {
@@ -71,7 +71,14 @@ namespace NMR {
&& strcmp(pChildName, XML_3MF_ELEMENT_CIPHERVALUE) == 0) {
PModelReaderNode_StringValue pNode = std::make_shared<CModelReaderNode_StringValue>(m_pWarnings);
pNode->parseXML(pXMLReader);
m_sCipherValue = base64_decode(pNode->getValue());
try {
std::string result = base64_decode(pNode->getValue());
m_sCipherValue = std::vector<nfByte>(result.begin(), result.end());
}
catch (...) {
// base64_decode throws an exception if the input is not valid base64
m_pWarnings->addException(CNMRException(NMR_ERROR_KEYSTOREINVALIDENCODING), NMR::eModelWarningLevel::mrwInvalidMandatoryValue);
}
}
}