Skip to content

Commit

Permalink
removes mbed tls stuff
Browse files Browse the repository at this point in the history
Signed-off-by: MarzellT <[email protected]>
  • Loading branch information
MarzellT committed Jan 17, 2025
1 parent fe0689b commit 58e2c7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
20 changes: 0 additions & 20 deletions modules/EvseV2G/connection/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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<sockaddr_in6*>(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);
Expand Down Expand Up @@ -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<v2g_context*>(data);
struct v2g_connection* conn = NULL;
Expand Down
5 changes: 0 additions & 5 deletions modules/EvseV2G/v2g_ctx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 58e2c7a

Please sign in to comment.