Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Snip.Client

Feature notes: Snif remoting framework (concepts)

Classes, interfaces and records

classTsnipClient — component reference

inherits from TsnicClassClient

constructor Create(AOwner: TComponent); override;
Constructs the client and its owned sub-components (SSHClient, the RSA/ECDSA/ Ed25519 host-key pins, and the internal TsnipSSHClient), pre-wired with the modern default SSH algorithm set (mlkem768x25519 KEX, AES-256-GCM, hmac-sha2-256) matching TsnipServer. An app rarely calls this directly; it runs when the component is dropped on a form or created in code. » member page
procedure SuggestRequiredUnits(aProc: tGetStringMethod); override; procedure Start;
Call once configuration (host, ports, the SSH/Snif credentials, any host-key pins) is set, to bring the client fully up: it opens the SSH transport, does the SSH-transport user login (SSHUsername/SSHPassword), starts the snip subsystem channel, then performs the second-stage Snif challenge/respon... Full description »
procedure Stop;
Tears the connection back down in order: closes the snip channel (which stops the server-side subsystem thread) then closes the underlying SSH transport. Full description »
property MaxFrameSize: Integer read GetMaxFrameSize write SetMaxFrameSize default cSnipDefaultMaxFrameSize;
Maximum inbound frame BODY in octets (at least 1; default 16 MiB). TLS/QUIC also use it for the AddIn buffered-plaintext ceiling. Full description »
property SSHClient: TstSSHSocketClient read fSSHClient write SetSSHClient;
The underlying SSH transport client. It is created and configured for you in Create (algorithms, host-key acceptance, password auth). An app reaches in here for advanced SSH tuning or to assign ServerEdDSAKey/ServerECDSAKey when pinning a host key. The setter is inert (the SSHClient is owned/fixed). » member page
property RSAKey: TstRSAPublicKey read fRSAKey write SetRSAKey;
Optional RSA host-key pin: load the server's RSA public key here and assign it via SSHClient.ServerRSAKey to pin it. The published setter here is inert; assignment happens through SSHClient. By default any standard host key is accepted (see ServerKeyOptions in Create). » member page
property ECDSAKey: TstECDSAPublicKey read fECDSAKey;
Optional ECDSA host-key pin: load the server's ECDSA public key here and assign it via SSHClient.ServerECDSAKey to pin it (same pattern as EdDSAKey/RSAKey). By default any standard host key is accepted (see ServerKeyOptions in Create). » member page
property EdDSAKey: TstEdDSAPublicKey read fEdDSAKey;
Optional Ed25519 host-key pin: load the server's Ed25519 public key here and assign it via SSHClient.ServerEdDSAKey to pin it (same pattern as ECDSAKey). » member page
property SSHUsername: string read fSSHUsername write SetSSHUsername;
First-stage (SSH transport) credentials. SSHUsername is the SSH login name and SSHPassword the SSH password used for the transport-level 'password' user auth in Start (fed to the client via OnGetClientPassword). These authenticate the SSH tunnel itself, distinct from the Snif application login below. » member page
property SSHPassword: string read fSSHPassword write SetSSHPassword;
SSH-transport password paired with SSHUsername; supplied to the SSH client via OnGetClientPassword during Start to authenticate the tunnel (not the application-level Snif login). Set it before calling Start. » member page
property SnifUsername: string read fSnifUsername write SetSnifUsername;
Second-stage (Snif application) credentials. After the SSH tunnel and snip channel are up, Start runs a Snif challenge/response login over the remote 'StreamSec.Snif.Authentication.Login' object using SnifUsername/SnifPassword; failure raises. These identify the application-level user on the snip server, separate from the SSH transport account above. » member page
property SnifPassword: string read fSnifPassword write SetSnifPassword;
Snif application password paired with SnifUsername; hashed into the challenge/response (CalcResponse) that Start sends to the remote Login object for the second-stage app login. Set it before calling Start. » member page
property ChannelOpenTimeout: Cardinal read GetChannelOpenTimeout write SetChannelOpenTimeout default cSnipChannelOpenTimeoutMSec;
Milliseconds Start waits, after the SSH login, for the server to answer the SSH channel open that carries the snip connection (default 20000; 0 waits for ever). Full description »