s3:libsmb: s/cli_encryption_on/cli_state_encryption_on()
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Sep 2011 14:15:18 +0000 (16:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Sep 2011 14:17:45 +0000 (16:17 +0200)
metze

source3/libsmb/async_smb.c
source3/libsmb/clireadwrite.c

index cb4e63035b490220bafbd01b2baeba425fbd2e18..8966794ab647c2c4419aa84f7e346cc7dd325549 100644 (file)
@@ -500,7 +500,7 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
                return status;
        }
 
-       if (cli_encryption_on(state->cli)) {
+       if (cli_state_encryption_on(state->cli)) {
                char *buf, *enc_buf;
 
                buf = (char *)iov_concat(talloc_tos(), iov, iov_count);
@@ -674,7 +674,7 @@ static NTSTATUS cli_state_dispatch_smb1(struct cli_state *cli,
                return NT_STATUS_INVALID_NETWORK_RESPONSE;
        }
 
-       if (cli_encryption_on(cli) && (CVAL(inbuf, 0) == 0)) {
+       if (cli_state_encryption_on(cli) && (CVAL(inbuf, 0) == 0)) {
                uint16_t enc_ctx_num;
 
                status = get_enc_ctx_num(inbuf, &enc_ctx_num);
index bbe6a8127621545dd901533f04a4fcb44cde82cc..1ee2196b76b3becdb07c746919de3c3f9ade15a9 100644 (file)
@@ -47,7 +47,7 @@ static size_t cli_read_max_bufsize(struct cli_state *cli)
                        return min_space;
                }
 
-               if (cli_encryption_on(cli)) {
+               if (cli_state_encryption_on(cli)) {
                        return min_space;
                }
 
@@ -100,7 +100,7 @@ static size_t cli_write_max_bufsize(struct cli_state *cli,
                return min_space;
        }
 
-       if (cli_encryption_on(cli)) {
+       if (cli_state_encryption_on(cli)) {
                return min_space;
        }