For AMT TLS hostbased improvements.

This commit is contained in:
Ylian Saint-Hilaire 2021-11-11 13:17:03 -08:00
parent 2e29cfe67e
commit 04392905d1
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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

View File

@ -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