From ebe258dd4091c00cf2ca3d6648cf4d60cb682ee1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Jul 2011 21:47:36 +0200 Subject: s3:libsmb: replace cli_initialise[_ex]() by cli_state_create() This makes sure cli_state->src_ss and cli_state->dest_ss are always initialized. metze --- source3/libsmb/proto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/proto.h') diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index d7a5612733..08d651f08c 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -159,8 +159,10 @@ NTSTATUS cli_set_domain(struct cli_state *cli, const char *domain); NTSTATUS cli_set_username(struct cli_state *cli, const char *username); NTSTATUS cli_set_password(struct cli_state *cli, const char *password); NTSTATUS cli_init_creds(struct cli_state *cli, const char *username, const char *domain, const char *password); -struct cli_state *cli_initialise(void); -struct cli_state *cli_initialise_ex(int signing_state); +struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, + int fd, + const char *desthost, + int signing_state); bool cli_state_encryption_on(struct cli_state *cli); void cli_nt_pipes_close(struct cli_state *cli); void cli_shutdown(struct cli_state *cli); -- cgit