Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTTLS_ContentLayer.TestHandshakeMessage

function TestHandshakeMessage(const aMessage: tBytes; aResponse: TStream): Integer;
TEST BUILDS ONLY: the define is set by test harnesses, never by the packages, so shipped code does not contain this. Hands one plaintext handshake message (msg_type, 24-bit length, body - as it appears in a decrypted record) to the handshake layer, exactly as HandleHandshake does after decryption, so a test can put messages out of order without building encrypted records. -1 for a malformed message or a session that no longer reads.