Scoop API

scoop:scoop.tls:0.1.0

scoop.tls.native

API

  • class TlsEngine

    A transport-independent TLS state machine with explicit ciphertext input and output. The caller drives handshake, transfer, verification, and shutdown steps and serializes access to the engine. Close it to release the native session.

  • struct TlsStep

    The result of one engine step.

  • enum TlsStepKind

    The next action required by the transport-independent [TlsEngine].

  • function freeSystemContext

    Releases an owned system-trust work record and any result not already taken. Call once after its execution has stopped.

  • function freeVerification

    Releases a verification work record after execution and result delivery have finished.

  • function prepareSystemContext

    Allocates owned work for loading system trust roots. Run it, take the resulting context on success, and free the work record on every exit.

  • function runSystemContext

    Runs prepared system-trust loading work synchronously. The work pointer must remain valid until execution finishes.

  • function runVerification

    Runs an owned TLS certificate-verification work record synchronously.

  • function takeSystemContext

    Takes the client context from completed system-trust work, reporting any recorded failure. The work record must still be released afterward.