Merge branch 'develop' of https://github.com/open-license-manager/open-license-manager into develop
| | |
| | | using namespace std; |
| | | |
| | | LCC_EVENT_TYPE HwIdentifierFacade::validate_pc_signature(const std::string& str_code) { |
| | | HwIdentifier pc_id(str_code); |
| | | LCC_API_HW_IDENTIFICATION_STRATEGY id_strategy = pc_id.get_identification_strategy(); |
| | | LCC_EVENT_TYPE result = IDENTIFIERS_MISMATCH; |
| | | try { |
| | | HwIdentifier pc_id(str_code); |
| | | LCC_API_HW_IDENTIFICATION_STRATEGY id_strategy = pc_id.get_identification_strategy(); |
| | | unique_ptr<IdentificationStrategy> strategy = IdentificationStrategy::get_strategy(id_strategy); |
| | | result = strategy->validate_identifier(pc_id); |
| | | } catch (logic_error& e) { |
| | |
| | | return score; |
| | | } |
| | | |
| | | bool cmp(const OsAdapterInfo &a, const OsAdapterInfo &b) { return score(a) >= score(b); } |
| | | bool cmp(const OsAdapterInfo &a, const OsAdapterInfo &b) { return score(a) > score(b); } |
| | | /** |
| | | * |
| | | * @param adapterInfos |