Lines Matching refs:ssl
228 mbedtls_ssl_context ssl; member
467 mbedtls_ssl_init(&tls->ssl); in tls_alloc()
513 mbedtls_ssl_set_hostname(&target_tls->ssl, in tls_clone()
514 source_tls->ssl.hostname); in tls_clone()
538 mbedtls_ssl_free(&tls->ssl); in tls_release()
680 ret = mbedtls_ssl_get_session(&context->ssl, &session); in tls_session_store()
716 ret = mbedtls_ssl_set_session(&context->ssl, &session); in tls_session_restore()
896 &tls_ctx->ssl, in dtls_rx()
1166 ret = mbedtls_ssl_session_reset(&context->ssl); in tls_mbedtls_reset()
1199 while ((ret = mbedtls_ssl_handshake(&context->ssl)) != 0) { in tls_mbedtls_handshake()
1299 mbedtls_ssl_set_bio(&context->ssl, context, in tls_mbedtls_init()
1303 mbedtls_ssl_set_bio(&context->ssl, context, in tls_mbedtls_init()
1331 mbedtls_ssl_set_timer_cb(&context->ssl, in tls_mbedtls_init()
1378 mbedtls_ssl_set_hostname(&context->ssl, ""); in tls_mbedtls_init()
1428 ret = mbedtls_ssl_setup(&context->ssl, in tls_mbedtls_init()
1440 ret = mbedtls_ssl_set_cid(&context->ssl, MBEDTLS_SSL_CID_ENABLED, in tls_mbedtls_init()
1518 if (mbedtls_ssl_set_hostname(&context->ssl, optval) != 0) { in tls_opt_hostname_set()
1599 ciph = mbedtls_ssl_get_ciphersuite(&context->ssl); in tls_opt_ciphersuite_used_get()
1792 ret = mbedtls_ssl_get_peer_cid(&context->ssl, &enabled, optval, optlen); in tls_opt_dtls_peer_connection_id_value_get()
1821 ret = mbedtls_ssl_get_peer_cid(&context->ssl, &enabled, in tls_opt_dtls_connection_id_status_get()
2118 (void)mbedtls_ssl_close_notify(&ctx->ssl); in ztls_close_ctx()
2304 ret = mbedtls_ssl_write(&ctx->ssl, buf, len); in send_tls()
2599 ret = mbedtls_ssl_read(&ctx->ssl, (uint8_t *)buf + recv_len, in recv_tls()
2696 ret = mbedtls_ssl_read(&ctx->ssl, buf, max_len); in recvfrom_dtls_common()
2746 remaining = mbedtls_ssl_get_bytes_avail(&ctx->ssl); in recvfrom_dtls_common()
2761 err = mbedtls_ssl_read(&ctx->ssl, &byte, sizeof(byte)); in recvfrom_dtls_common()
2808 (void)mbedtls_ssl_close_notify(&ctx->ssl); in recvfrom_dtls_client()
2901 (void)mbedtls_ssl_close_notify(&ctx->ssl); in recvfrom_dtls_server()
2986 if (mbedtls_ssl_get_bytes_avail(&ctx->ssl) > 0) { in ztls_poll_prepare_pollin()
3098 ret = mbedtls_ssl_read(&ctx->ssl, NULL, 0); in ztls_socket_data_check()
3141 return mbedtls_ssl_get_bytes_avail(&ctx->ssl); in ztls_socket_data_check()
3151 if (mbedtls_ssl_get_bytes_avail(&ctx->ssl) > 0) { in ztls_poll_update_pollin()
3674 return &ctx->ssl; in ztls_get_mbedtls_ssl_context()