NativeTlsStream.handshake

TlsProgress handshake()

Performs or continues the TLS handshake.

Returns

TlsProgress.DONE when complete, NEED_READ/NEED_WRITE

when I/O is needed, ERROR on failure.