my $if_version = $interface->{VERSION};
pidl "
-static NTSTATUS $name\__op_bind(struct dcesrv_call_state *dce_call, const struct dcesrv_interface *iface, uint32_t if_version)
+static NTSTATUS $name\__op_bind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface)
{
#ifdef DCESRV_INTERFACE_$uname\_BIND
- return DCESRV_INTERFACE_$uname\_BIND(dce_call,iface);
+ return DCESRV_INTERFACE_$uname\_BIND(context,iface);
#else
return NT_STATUS_OK;
#endif
#include <gnutls/crypto.h>
#include <gnutls/abstract.h>
-#define DCESRV_INTERFACE_BACKUPKEY_BIND(call, iface) \
- dcesrv_interface_backupkey_bind(call, iface)
-static NTSTATUS dcesrv_interface_backupkey_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_BACKUPKEY_BIND(context, iface) \
+ dcesrv_interface_backupkey_bind(context, iface)
+static NTSTATUS dcesrv_interface_backupkey_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_require_privacy(context, iface);
}
#include <gcrypt.h>
#endif
-#define DCESRV_INTERFACE_BACKUPKEY_BIND(call, iface) \
- dcesrv_interface_backupkey_bind(call, iface)
-static NTSTATUS dcesrv_interface_backupkey_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_BACKUPKEY_BIND(context, iface) \
+ dcesrv_interface_backupkey_bind(context, iface)
+static NTSTATUS dcesrv_interface_backupkey_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_require_privacy(context, iface);
}
*/
call->state_flags |= DCESRV_CALL_STATE_FLAG_MULTIPLEXED;
- status = iface->bind(call, iface, if_version);
+ status = iface->bind(context, iface);
call->context = NULL;
if (!NT_STATUS_IS_OK(status)) {
/* we don't want to trigger the iface->unbind() hook */
struct ndr_syntax_id syntax_id;
/* this function is called when the client binds to this interface */
- NTSTATUS (*bind)(struct dcesrv_call_state *, const struct dcesrv_interface *, uint32_t if_version);
+ NTSTATUS (*bind)(struct dcesrv_connection_context *, const struct dcesrv_interface *);
/* this function is called when the client disconnects the endpoint */
void (*unbind)(struct dcesrv_connection_context *, const struct dcesrv_interface *);
#include "rpc_server/dcerpc_server_proto.h"
#include "librpc/gen_ndr/ndr_mgmt.h"
-#define DCESRV_INTERFACE_MGMT_BIND(call, iface) \
- dcesrv_interface_mgmt_bind(call, iface)
+#define DCESRV_INTERFACE_MGMT_BIND(context, iface) \
+ dcesrv_interface_mgmt_bind(context, iface)
/*
* This #define allows the mgmt interface to accept invalid
* association groups, because association groups are to coordinate
#define DCESRV_INTERFACE_MGMT_FLAGS DCESRV_INTERFACE_FLAGS_HANDLES_NOT_USED
-static NTSTATUS dcesrv_interface_mgmt_bind(struct dcesrv_call_state *dce_call,
+static NTSTATUS dcesrv_interface_mgmt_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_allow_connect(context, iface);
}
#include "dns_server/dnsserver_common.h"
#include "dnsserver.h"
-#define DCESRV_INTERFACE_DNSSERVER_BIND(call, iface) \
- dcesrv_interface_dnsserver_bind(call, iface)
-static NTSTATUS dcesrv_interface_dnsserver_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_DNSSERVER_BIND(context, iface) \
+ dcesrv_interface_dnsserver_bind(context, iface)
+static NTSTATUS dcesrv_interface_dnsserver_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_require_integrity(context, iface);
}
DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); \
} while (0)
-#define DCESRV_INTERFACE_DRSUAPI_BIND(call, iface) \
- dcesrv_interface_drsuapi_bind(call, iface)
-static NTSTATUS dcesrv_interface_drsuapi_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_DRSUAPI_BIND(context, iface) \
+ dcesrv_interface_drsuapi_bind(context, iface)
+static NTSTATUS dcesrv_interface_drsuapi_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_require_privacy(context, iface);
}
#include "librpc/gen_ndr/ndr_echo.h"
#include "lib/events/events.h"
-#define DCESRV_INTERFACE_RPCECHO_BIND(call, iface) \
- dcesrv_interface_rpcecho_bind(call, iface)
-static NTSTATUS dcesrv_interface_rpcecho_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_RPCECHO_BIND(context, iface) \
+ dcesrv_interface_rpcecho_bind(context, iface)
+static NTSTATUS dcesrv_interface_rpcecho_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_allow_connect(context, iface);
}
#include "librpc/gen_ndr/ndr_epmapper.h"
#include "rpc_server/dcerpc_server.h"
-#define DCESRV_INTERFACE_EPMAPPER_BIND(call, iface) \
- dcesrv_interface_epmapper_bind(call, iface)
-static NTSTATUS dcesrv_interface_epmapper_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_EPMAPPER_BIND(context, iface) \
+ dcesrv_interface_epmapper_bind(context, iface)
+static NTSTATUS dcesrv_interface_epmapper_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_allow_connect(context, iface);
}
#include "lib/messaging/irpc.h"
#include "libds/common/roles.h"
-#define DCESRV_INTERFACE_LSARPC_BIND(call, iface) \
- dcesrv_interface_lsarpc_bind(call, iface)
-static NTSTATUS dcesrv_interface_lsarpc_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_LSARPC_BIND(context, iface) \
+ dcesrv_interface_lsarpc_bind(context, iface)
+static NTSTATUS dcesrv_interface_lsarpc_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_reject_connect(context, iface);
}
#include "rpc_server/common/sid_helper.h"
#include "lib/util/util_str_escape.h"
-#define DCESRV_INTERFACE_NETLOGON_BIND(call, iface) \
- dcesrv_interface_netlogon_bind(call, iface)
+#define DCESRV_INTERFACE_NETLOGON_BIND(context, iface) \
+ dcesrv_interface_netlogon_bind(context, iface)
/*
* This #define allows the netlogon interface to accept invalid
*/
#define DCESRV_INTERFACE_NETLOGON_FLAGS DCESRV_INTERFACE_FLAGS_HANDLES_NOT_USED
-static NTSTATUS dcesrv_interface_netlogon_bind(struct dcesrv_call_state *dce_call,
+static NTSTATUS dcesrv_interface_netlogon_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_reject_connect(context, iface);
}
return NT_STATUS_OK;
}
-static NTSTATUS remote_op_bind(struct dcesrv_call_state *dce_call, const struct dcesrv_interface *iface, uint32_t if_version)
+static NTSTATUS remote_op_bind(struct dcesrv_connection_context *context,
+ const struct dcesrv_interface *iface)
{
return NT_STATUS_OK;
}
#include "lib/util/tsort.h"
#include "libds/common/flag_mapping.h"
-#define DCESRV_INTERFACE_SAMR_BIND(call, iface) \
- dcesrv_interface_samr_bind(call, iface)
-static NTSTATUS dcesrv_interface_samr_bind(struct dcesrv_call_state *dce_call,
+#define DCESRV_INTERFACE_SAMR_BIND(context, iface) \
+ dcesrv_interface_samr_bind(context, iface)
+static NTSTATUS dcesrv_interface_samr_bind(struct dcesrv_connection_context *context,
const struct dcesrv_interface *iface)
{
- struct dcesrv_connection_context *context = dce_call->context;
return dcesrv_interface_bind_reject_connect(context, iface);
}
#include "ntvfs/ntvfs.h"
#include "param/param.h"
-static NTSTATUS spoolss__op_bind(struct dcesrv_call_state *dce_call,
- const struct dcesrv_interface *iface,
- uint32_t if_version)
+static NTSTATUS spoolss__op_bind(struct dcesrv_connection_context *context,
+ const struct dcesrv_interface *iface)
{
return NT_STATUS_OK;
}