summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-07-14 12:56:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-07-14 12:56:30 +0000
commit0b0fa60900c381aecec55b609f75c5c832f6bac5 (patch)
tree8c8d10edb6a85bd8afc3b8153d77baef7b8bcc1e /source3/rpc_client
parent236702e15c26432fd09888658fd66f318d03e3f5 (diff)
downloadsamba-0b0fa60900c381aecec55b609f75c5c832f6bac5.tar.gz
samba-0b0fa60900c381aecec55b609f75c5c832f6bac5.tar.bz2
samba-0b0fa60900c381aecec55b609f75c5c832f6bac5.zip
Fix compile error noticed by Ken Cross, use the utility function instead
of an inline replacement... Andrew Bartlett (This used to be commit d941255a97fc6d0d62eae1602075b1aa0481cde5)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 5ac7aaa441..2229a9f2cf 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -28,7 +28,7 @@
extern struct pipe_id_info pipe_names[];
-void get_auth_type_level(int pipe_auth_flags, int *auth_type, int *auth_level)
+static void get_auth_type_level(int pipe_auth_flags, int *auth_type, int *auth_level)
{
*auth_type = 0;
*auth_level = 0;
@@ -989,21 +989,11 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint8 op_num,
if (cli->pipe_auth_flags) {
size_t data_and_padding_size;
+ int auth_type;
+ int auth_level;
prs_align_uint64(&sec_blob);
- int auth_type = 0;
- int auth_level = 0;
- if (cli->pipe_auth_flags & AUTH_PIPE_SEAL) {
- auth_level = RPC_PIPE_AUTH_SEAL_LEVEL;
- } else if (cli->pipe_auth_flags & AUTH_PIPE_SIGN) {
- auth_level = RPC_PIPE_AUTH_SIGN_LEVEL;
- }
-
- if (cli->pipe_auth_flags & AUTH_PIPE_NETSEC) {
- auth_type = NETSEC_AUTH_TYPE;
- } else if (cli->pipe_auth_flags & AUTH_PIPE_NTLMSSP) {
- auth_type = NTLMSSP_AUTH_TYPE;
- }
+ get_auth_type_level(cli->pipe_auth_flags, &auth_type, &auth_level);
data_and_padding_size = prs_offset(&sec_blob);
auth_padding = data_and_padding_size - send_size;