From: Stefan Metzmacher Date: Thu, 7 Mar 2024 12:50:39 +0000 (+0100) Subject: s3:net: remove unused net_context->smb_encrypt X-Git-Tag: tdb-1.4.11~727 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ab1c8620c907a6cced8d1d1cd9686746b59717;p=thirdparty%2Fsamba.git s3:net: remove unused net_context->smb_encrypt Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/utils/net.c b/source3/utils/net.c index 9c2062b3691..126dc324028 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -1375,8 +1375,6 @@ static struct functable net_func[] = { cli_credentials_get_password_obtained(c->creds); enum credentials_obtained username_obtained = CRED_UNINITIALISED; - enum smb_encryption_setting encrypt_state = - cli_credentials_get_smb_encryption(c->creds); uint32_t gensec_features; if (principal_obtained == CRED_SPECIFIED) { @@ -1393,8 +1391,6 @@ static struct functable net_func[] = { c->opt_workgroup = cli_credentials_get_domain(c->creds); - c->smb_encrypt = (encrypt_state == SMB_ENCRYPTION_REQUIRED); - gensec_features = cli_credentials_get_gensec_features(c->creds); if (c->legacy_opt_ccache) { gensec_features |= GENSEC_FEATURE_NTLM_CCACHE; diff --git a/source3/utils/net.h b/source3/utils/net.h index 58a315c3bff..36660664aa0 100644 --- a/source3/utils/net.h +++ b/source3/utils/net.h @@ -103,7 +103,6 @@ struct net_context { int opt_have_ip; struct sockaddr_storage opt_dest_ip; - bool smb_encrypt; struct libnetapi_ctx *netapi_ctx; struct messaging_context *msg_ctx; struct netlogon_creds_cli_context *netlogon_creds;