tls

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

Make Socket connection secure with TLS.

TODO: report YT issue


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

Make Socket connection secure with TLS using TLSConfig.


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

Make Socket connection secure with TLS.


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

Make Socket connection secure with TLS configured with block.

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

Make Socket connection secure with TLS.