From 1d37fe5c30f5bfa343aaa63cf5fae1c5dad1df75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 7 Feb 2011 07:54:34 +0000 Subject: [PATCH] Debug output git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10801 383ad7c9-94d9-4d36-a494-682f7c89f535 --- LicenseManager/LicenseManager.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/LicenseManager/LicenseManager.cc b/LicenseManager/LicenseManager.cc index 364604eb..28040c77 100644 --- a/LicenseManager/LicenseManager.cc +++ b/LicenseManager/LicenseManager.cc @@ -129,14 +129,23 @@ bool LicenseManager::authenticate() { // =============================================================================================== QString mac; + + QStringList macHashes; // Get all Network Interfaces QList interfaces = QNetworkInterface::allInterfaces(); foreach ( QNetworkInterface netInterface, interfaces ) { + std::cerr << "Got MAC: " << netInterface.humanReadableName().toStdString() << " " << netInterface.hardwareAddress().toStdString() << std::endl; + + if ( netInterface.flags() & QNetworkInterface::IsLoopBack) { + std::cerr << "Loopback" << std::endl; + } + mac = mac + netInterface.hardwareAddress().remove(":"); + } - QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex(); + QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex(); // =============================================================================================== // Compute hash of processor information -- GitLab