frameAgentMessage

fnSshAgentFraming frameAgentMessage(const(ubyte)[] buffer) @safe

Decodes one complete agent message from a buffer.

Parameters

bufferBytes received from the agent; the full message must be present, including its four length bytes.

Returns

The payload slice into buffer and the number of bytes it

occupies including the length prefix.

Throws

SshAgentException when the framing is invalid or the

declared length exceeds the message limit or the buffer.