]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:librpc/rpc: split out dcerpc_internal.h for struct pipe_auth_data
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Sep 2024 04:39:02 +0000 (06:39 +0200)
committerJule Anger <janger@samba.org>
Thu, 12 Jun 2025 11:27:15 +0000 (11:27 +0000)
This should be anonymous for callers.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit b874619b5ed5d29a939f13d8064a47c8aca45b8c)

source3/librpc/rpc/dcerpc.h
source3/librpc/rpc/dcerpc_helpers.c
source3/librpc/rpc/dcerpc_internal.h [new file with mode: 0644]
source3/rpc_client/cli_pipe.c

index fdd3beda46d8c4f077c1e615340dd1a38a9d9844..f3dc3394ff4c4782bb2c01a1fb2e0899a8c9f184 100644 (file)
 
 struct NL_AUTH_MESSAGE;
 struct gensec_security;
-
-/* auth state for all bind types. */
-
-struct pipe_auth_data {
-       enum dcerpc_AuthType auth_type;
-       enum dcerpc_AuthLevel auth_level;
-       uint32_t auth_context_id;
-       bool hdr_signing;
-       bool verified_bitmask1;
-
-       struct gensec_security *auth_ctx;
-};
+struct pipe_auth_data;
 
 /* The following definitions come from librpc/rpc/dcerpc_helpers.c  */
 NTSTATUS dcerpc_push_ncacn_packet(TALLOC_CTX *mem_ctx,
index 2b99eb7aff748786893eb06bb66f025c6d565ac9..5310e4a6612995cb2c85da92288759cbf095d601 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "librpc/rpc/dcerpc.h"
+#include "librpc/rpc/dcerpc_internal.h"
 #include "librpc/rpc/dcerpc_util.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
 #include "librpc/crypto/gse.h"
diff --git a/source3/librpc/rpc/dcerpc_internal.h b/source3/librpc/rpc/dcerpc_internal.h
new file mode 100644 (file)
index 0000000..3c026fa
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+   Unix SMB/CIFS implementation.
+
+   DCERPC client side interface structures
+
+   Copyright (C) 2008 Jelmer Vernooij
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _S3_DCERPC_INTERNAL_H__
+#define _S3_DCERPC_INTERNAL_H__
+
+struct pipe_auth_data {
+       enum dcerpc_AuthType auth_type;
+       enum dcerpc_AuthLevel auth_level;
+       uint32_t auth_context_id;
+       bool hdr_signing;
+       bool verified_bitmask1;
+
+       struct gensec_security *auth_ctx;
+};
+
+#endif /* __S3_DCERPC_INTERNAL_H__ */
index 44e84dc62307b312e6fe312046c2f36f13abbfae..c1b7930fe9e8228d29dabc8e50db90e5a0fe47a3 100644 (file)
@@ -31,6 +31,7 @@
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
 #include "librpc/gen_ndr/auth.h"
 #include "librpc/rpc/dcerpc.h"
+#include "librpc/rpc/dcerpc_internal.h"
 #include "librpc/rpc/dcerpc_util.h"
 #include "rpc_dce.h"
 #include "cli_pipe.h"