mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 06:35:54 -05:00
For AMT TLS hostbased improvements.
This commit is contained in:
parent
2e29cfe67e
commit
04392905d1
Binary file not shown.
Binary file not shown.
@ -456,7 +456,7 @@ function amt_heci()
|
|||||||
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
|
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
|
||||||
|
|
||||||
// Format the command
|
// Format the command
|
||||||
var data = Buffer.alloc(1 + 64 + 4 + 4 + 320);
|
var data = Buffer.alloc(1 + 64 + 4 + 4 + ((dnsSuffixList != null) ? 320 : 0));
|
||||||
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
|
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
|
||||||
certHash.copy(data, 1); // Write the hash
|
certHash.copy(data, 1); // Write the hash
|
||||||
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled
|
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled
|
||||||
|
@ -456,7 +456,7 @@ function amt_heci()
|
|||||||
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
|
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
|
||||||
|
|
||||||
// Format the command
|
// Format the command
|
||||||
var data = Buffer.alloc(1 + 64 + 4 + 4 + 320);
|
var data = Buffer.alloc(1 + 64 + 4 + 4 + ((dnsSuffixList != null) ? 320 : 0));
|
||||||
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
|
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
|
||||||
certHash.copy(data, 1); // Write the hash
|
certHash.copy(data, 1); // Write the hash
|
||||||
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled
|
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user