Build a Delphi 13 console application on Windows and run it on x86-64 Linux. The program prints the StreamSec release it linked and a 16-byte run ID from the library's random generator.
Create a Delphi console application named StreamSecLinuxCheck. Save this unit beside the project, then use the project source shown below.
unit TaskDelphiLinux; interface function DeploymentReport: string; implementation uses System.SysUtils, stVersion, stDERUtils, stRandom, stDrbgAesCtr, stAESNI, stAESCT; function DeploymentReport: string; var lId: TBytes; begin SetLength(lId, 16); GetRawRandom(False).RawRandom(lId); Result := 'StreamSec Tools ' + cStreamSecToolsVersion + ' run ' + LowerCase(OSToHex(BytesToOS(lId), True)); end; end.
program StreamSecLinuxCheck; {$APPTYPE CONSOLE} uses TaskDelphiLinux in 'TaskDelphiLinux.pas'; begin Writeln(DeploymentReport); end.
Source directory to the Delphi compiler Search path and Include file search path. For the Delphi 13 DCU trial, set the search path to Source\D13\l64\dcu.stAESNIFunc.o and stGHashFunc.o. In the source edition these are in Source. In the Delphi 13 DCU trial they are beside the Linux DCUs. The linker incorporates these objects into the executable.Use Run > Run Without Debugging with the Linux target active to deploy through PAServer. To see the output in your own terminal, copy the built StreamSecLinuxCheck executable from the project's Linux64 output directory to a directory on the Linux host. From that directory run chmod u+x StreamSecLinuxCheck, then ./StreamSecLinuxCheck.
The output begins with StreamSec Tools and the four-part version from your release. After run there should be 32 hexadecimal digits. The identifier is public and changes between runs. See Generate random bytes and keys for the generator used here.
stVersion · stRandom · stDrbgAesCtr