From 6658c3ed6335d33e9c7e3f370679b1ee8a4963ea Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 15 Apr 2022 23:37:23 +0300 Subject: [PATCH] Remove useless DH file configuration from TLS library wrappers These operations do not really have any effect since tls_connection_set_params() is used only in the TLS client case and the client receives the DH parameters from the server instead of local configuration. Signed-off-by: Jouni Malinen --- components/wpa_supplicant/src/crypto/tls_internal.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/wpa_supplicant/src/crypto/tls_internal.c b/components/wpa_supplicant/src/crypto/tls_internal.c index 8095b43bd2..d7c4743c2c 100644 --- a/components/wpa_supplicant/src/crypto/tls_internal.c +++ b/components/wpa_supplicant/src/crypto/tls_internal.c @@ -281,13 +281,6 @@ int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn, return -1; } - if (tlsv1_set_dhparams(cred, params->dh_file, params->dh_blob, - params->dh_blob_len)) { - wpa_printf(MSG_INFO, "TLS: Failed to load DH parameters"); - tlsv1_cred_free(cred); - return -1; - } - if (tlsv1_client_set_cred(conn->client, cred) < 0) { tlsv1_cred_free(cred); return -1;