For AMT TLS hostbased improvements.
Ylian Saint-Hilaire committed
Nov 11, 2021 at 13:17 UTC
04392905d1fda290baa61ec98debc646210dfa60
4 files changed
+2
-2
agents/MeshCmd-signed.exe
Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ
agents/MeshCmd64-signed.exe
Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ
agents/modules_meshcmd/amt-mei.js
+1
-1
@@ -456,7 +456,7 @@ function amt_heci()
456
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
457
458
// Format the command
459
- var data = Buffer.alloc(1 + 64 + 4 + 4 + 320);
459
+ var data = Buffer.alloc(1 + 64 + 4 + 4 + ((dnsSuffixList != null) ? 320 : 0));
460
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
461
certHash.copy(data, 1); // Write the hash
462
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled
agents/modules_meshcore/amt-mei.js
+1
-1
@@ -456,7 +456,7 @@ function amt_heci()
456
for (var i = 4; i < arguments.length; ++i) { optional.push(arguments[i]); }
457
458
// Format the command
459
- var data = Buffer.alloc(1 + 64 + 4 + 4 + 320);
459
+ var data = Buffer.alloc(1 + 64 + 4 + 4 + ((dnsSuffixList != null) ? 320 : 0));
460
data[0] = (certHash.length == 48) ? 3 : 2 // Write certificate hash type: SHA256 = 2, SHA384 = 3
461
certHash.copy(data, 1); // Write the hash
462
data.writeUInt32LE(hostVpn ? 1 : 0, 65); // Write is HostVPN is enabled