tls

suspend expect fun Socket.tls(
    coroutineContext: <ERROR CLASS>,
    config: TLSConfig
): Socket
suspend fun Connection.tls(
    coroutineContext: <ERROR CLASS>,
    config: TLSConfig
): Socket

Make Socket connection secure with TLS using TLSConfig.

suspend fun Socket.tls(
    coroutineContext: <ERROR CLASS>
): Socket

Make Socket connection secure with TLS.

TODO: report YT issue

suspend expect fun Socket.tls(
    coroutineContext: <ERROR CLASS>,
    block: TLSConfigBuilder.() -> Unit
): Socket
suspend fun Connection.tls(
    coroutineContext: <ERROR CLASS>,
    block: TLSConfigBuilder.() -> Unit
): Socket

Make Socket connection secure with TLS configured with block.

suspend fun Connection.tls(
    coroutineContext: <ERROR CLASS>
): Socket
suspend fun Socket.tls(
    coroutineContext: <ERROR CLASS>,
    trustManager: X509TrustManager? = null,
    randomAlgorithm: String = "NativePRNGNonBlocking",
    cipherSuites: List<CipherSuite> = CIOCipherSuites.SupportedSuites,
    serverName: String? = null
): Socket

Make Socket connection secure with TLS.