ytls_do_handshake()

ytls_do_handshake()#

ytls_do_handshake() initiates the TLS handshake process for a secure connection, returning the handshake status.

Prototype

int ytls_do_handshake(
    hytls  ytls,
    hsskt  sskt
);

Parameters

Key

Type

Description

ytls

hytls

TLS context handle.

sskt

hsskt

Secure socket handle.


Return Value

Returns 1 if the handshake is complete, 0 if it is in progress, and -1 if it fails.

Notes

The callback on_handshake_done_cb will be invoked once upon success or multiple times in case of failure.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples