ktls/openssl

Search:
Group by:

Consts

SslCtrlOptions = 32
SSL_CTRL_OPTIONS control code for SSL_CTX_ctrl/SSL_ctrl.
SslOpEnableKtls = 8'u64
SSL_OP_ENABLE_KTLS = SSL_OP_BIT(3).
SslOpEnableKtlsTxZerocopySendfile = 17179869184'u64
SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE = SSL_OP_BIT(34). Boosts sendfile with hardware offload; the file must not change while being sent.

Procs

proc enableKtlsOnConn(ssl: pointer; extraOps: uint64 = 0): uint64 {.discardable,
    ...raises: [], tags: [], forbids: [].}
Set SSL_OP_ENABLE_KTLS (plus extraOps) on a per-connection SSL*. Returns the resulting options mask.
proc enableKtlsOnCtx(ctx: pointer; extraOps: uint64 = 0): uint64 {.discardable,
    ...raises: [], tags: [], forbids: [].}
Set SSL_OP_ENABLE_KTLS (plus extraOps, e.g. SslOpEnableKtlsTxZerocopySendfile) on an SSL_CTX*. Returns the resulting options mask.