]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: remove unused cli_cm_force_encryption()
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Nov 2019 16:28:35 +0000 (17:28 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 May 2020 06:43:39 +0000 (06:43 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/clidfs.c
source3/libsmb/proto.h

index 25f932c60bb0528dc898b0aabe4d93e9b0486cc7..933c32e881c07f5114f48829d27b082538645090 100644 (file)
@@ -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.
 ********************************************************************/
index 1ffc411c133b4be008e13e19cf8edcdd1a1e6d90..6ec450204a73759545c3ab4cf9a54835b9b01de8 100644 (file)
@@ -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,