1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Started work on server inner auth support in meshcmd.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-01 21:51:25 -07:00
parent 51bdd97780
commit e163bff7e3
3 changed files with 43 additions and 5 deletions

View file

@ -1344,7 +1344,8 @@ function getSystemInformation(func) {
} catch (e) { }
}
results.hardware.agentvers = process.versions;
results.hash = require('SHA384Stream').create().syncHash(JSON.stringify(results)).toString('hex');
var hasher = require('SHA384Stream').create();
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
func(results);
/*
@ -1359,25 +1360,25 @@ function getSystemInformation(func) {
p.then(function (res)
{
results.volumes = res;
results.hash = require('SHA384Stream').create().syncHash(JSON.stringify(results)).toString('hex');
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
func(results);
});
}
else if (require('identifiers').volumes != null)
{
results.volumes = require('identifiers').volumes();
results.hash = require('SHA384Stream').create().syncHash(JSON.stringify(results)).toString('hex');
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
func(results);
}
else
{
results.hash = require('SHA384Stream').create().syncHash(JSON.stringify(results)).toString('hex');
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
func(results);
}
}
else
{
results.hash = require('SHA384Stream').create().syncHash(JSON.stringify(results)).toString('hex');
results.hash = hasher.syncHash(JSON.stringify(results)).toString('hex');
func(results);
}
*/