diff --git a/modules/EvseV2G/connection/connection.cpp b/modules/EvseV2G/connection/connection.cpp index 02c2396fb..3173f662c 100644 --- a/modules/EvseV2G/connection/connection.cpp +++ b/modules/EvseV2G/connection/connection.cpp @@ -95,10 +95,6 @@ static int connection_create_socket(struct sockaddr_in6* sockaddr) { return s; } -static int connection_ssl_initialize() { - return 0; -} - /*! * \brief check_interface This function checks the interface name. The interface name is * configured automatically in case it is pre-initialized to “auto. @@ -148,15 +144,6 @@ int connection_init(struct v2g_context* v2g_ctx) { } } - if (v2g_ctx->tls_security != TLS_SECURITY_PROHIBIT) { - v2g_ctx->local_tls_addr = static_cast(calloc(1, sizeof(*v2g_ctx->local_tls_addr))); - connection_ssl_initialize(); - if (!v2g_ctx->local_tls_addr) { - dlog(DLOG_LEVEL_ERROR, "Failed to allocate memory for TLS address"); - return -1; - } - } - while (1) { if (v2g_ctx->local_tcp_addr) { get_interface_ipv6_address(v2g_ctx->if_name, ADDR6_TYPE_LINKLOCAL, v2g_ctx->local_tcp_addr); @@ -445,13 +432,6 @@ static void* connection_handle_tcp(void* data) { return nullptr; } -/** - * This is the 'main' function of a thread, which handles a TLS connection. - */ -static void* connection_handle_tls(void* data) { - return nullptr; -} - static void* connection_server(void* data) { struct v2g_context* ctx = static_cast(data); struct v2g_connection* conn = NULL; diff --git a/modules/EvseV2G/v2g_ctx.cpp b/modules/EvseV2G/v2g_ctx.cpp index 335388fdf..92fadbf79 100644 --- a/modules/EvseV2G/v2g_ctx.cpp +++ b/modules/EvseV2G/v2g_ctx.cpp @@ -361,9 +361,6 @@ struct v2g_context* v2g_ctx_create(ISO15118_chargerImplBase* p_chargerImplBase, return NULL; } -static void v2g_ctx_free_tls(struct v2g_context* ctx) { -} - void v2g_ctx_free(struct v2g_context* ctx) { if (ctx->event_base) { event_base_loopbreak(ctx->event_base); @@ -373,8 +370,6 @@ void v2g_ctx_free(struct v2g_context* ctx) { pthread_cond_destroy(&ctx->mqtt_cond); pthread_mutex_destroy(&ctx->mqtt_lock); - v2g_ctx_free_tls(ctx); - free(ctx->local_tls_addr); ctx->local_tls_addr = NULL; free(ctx->local_tcp_addr);