From 33cc9bebbffe9840656e7d059d2bfbd2d27bd0af Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 11 Sep 2025 20:10:24 -0400 Subject: [PATCH 1/2] Remove the parms::msg_status field This field appears to be unused. Signed-off-by: Chuck Lever --- src/tlshd/netlink.c | 3 +-- src/tlshd/tlshd.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tlshd/netlink.c b/src/tlshd/netlink.c index fbbee56..e59c945 100644 --- a/src/tlshd/netlink.c +++ b/src/tlshd/netlink.c @@ -375,7 +375,6 @@ static const struct tlshd_handshake_parms tlshd_default_handshake_parms = { .x509_privkey = TLS_NO_PRIVKEY, .peerids = NULL, .remote_peerids = NULL, - .msg_status = 0, .session_status = EIO, }; @@ -451,7 +450,7 @@ int tlshd_genl_get_handshake_parms(struct tlshd_handshake_parms *parms) goto out_msgfree; } - ret = parms->msg_status; + ret = 0; out_msgfree: nlmsg_free(msg); diff --git a/src/tlshd/tlshd.h b/src/tlshd/tlshd.h index 664de67..dd9ac78 100644 --- a/src/tlshd/tlshd.h +++ b/src/tlshd/tlshd.h @@ -40,7 +40,6 @@ struct tlshd_handshake_parms { key_serial_t x509_privkey; GArray *peerids; GArray *remote_peerids; - int msg_status; unsigned int session_status; }; From 9d90ef0c5c989494097ccbb442aca5e82010031c Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 11 Sep 2025 20:13:56 -0400 Subject: [PATCH 2/2] Remove TLS_DEFAULT_PRIORITIES This macro is not used. Signed-off-by: Chuck Lever --- src/tlshd/tlshd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tlshd/tlshd.h b/src/tlshd/tlshd.h index dd9ac78..655d0dc 100644 --- a/src/tlshd/tlshd.h +++ b/src/tlshd/tlshd.h @@ -161,7 +161,6 @@ extern void tlshd_quic_conn_destroy(struct tlshd_quic_conn *conn); extern void tlshd_quic_start_handshake(struct tlshd_quic_conn *conn); #endif -#define TLS_DEFAULT_PRIORITIES (NULL) #define TLS_DEFAULT_PSK_TYPE "psk" #define TLS_NO_PEERID (0) #define TLS_NO_CERT (0)