gcontini
2020-10-31 510d41ff7d12c8a8ba230d3b3f732b19a20f15e3
src/library/locate/ExternalDefinition.cpp
@@ -9,19 +9,19 @@
#include <cstring>
#include <string>
#include <vector>
#include <stdexcept>
#include <licensecc/datatypes.h>
#include "../base/base64.h"
#include "../base/EventRegistry.h"
#include "../base/FileUtils.hpp"
#include "../base/StringUtils.h"
#include "../base/string_utils.h"
#include "ExternalDefinition.hpp"
#include "../base/file_utils.hpp"
namespace license {
namespace locate {
using namespace std;
   using namespace std;
ExternalDefinition::ExternalDefinition(const LicenseLocation *location)
   : LocatorStrategy("ExternalDefinition"), m_location(location) {}
@@ -54,7 +54,7 @@
   if (licenseLocation == get_strategy_name()) {
      string licData(m_location->licenseData, mstrnlen_s(m_location->licenseData, LCC_API_MAX_LICENSE_DATA_LENGTH));
      if (m_location->license_data_type == LICENSE_ENCODED) {
         // FIXME what if license is wrong
         // FIXME what if license content is not base64
         vector<uint8_t> raw = unbase64(licData);
         string str = string(reinterpret_cast<char *>(raw.data()));
         return str;