From: Stefan Metzmacher Date: Mon, 11 Nov 2019 16:28:35 +0000 (+0100) Subject: s3:libsmb: remove unused cli_cm_force_encryption() X-Git-Tag: ldb-2.2.0~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3e33111115346a2b8a5743dac0fe3640cb7b24;p=thirdparty%2Fsamba.git s3:libsmb: remove unused cli_cm_force_encryption() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 25f932c60bb..933c32e881c 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -99,34 +99,6 @@ NTSTATUS cli_cm_force_encryption_creds(struct cli_state *c, return NT_STATUS_OK; } -NTSTATUS cli_cm_force_encryption(struct cli_state *c, - const char *username, - const char *password, - const char *domain, - const char *sharename) -{ - struct cli_credentials *creds = NULL; - NTSTATUS status; - - creds = cli_session_creds_init(c, - username, - domain, - NULL, /* default realm */ - password, - c->use_kerberos, - c->fallback_after_kerberos, - c->use_ccache, - c->pw_nt_hash); - if (creds == NULL) { - return NT_STATUS_NO_MEMORY; - } - - status = cli_cm_force_encryption_creds(c, creds, sharename); - /* gensec currently references the creds so we can't free them here */ - talloc_unlink(c, creds); - return status; -} - /******************************************************************** Return a connection to a server. ********************************************************************/ diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 1ffc411c133..6ec450204a7 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -135,11 +135,6 @@ struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, NTSTATUS cli_cm_force_encryption_creds(struct cli_state *c, struct cli_credentials *creds, const char *sharename); -NTSTATUS cli_cm_force_encryption(struct cli_state *c, - const char *username, - const char *password, - const char *domain, - const char *sharename); NTSTATUS cli_cm_open(TALLOC_CTX *ctx, struct cli_state *referring_cli, const char *server,