s4:rpc_server: only pass context to op_bind() hooks
[nivanova/samba-autobuild/.git] / source4 / rpc_server / backupkey / dcesrv_backupkey.c
index 307a7f09b74e8a8391c5bd51fef883d417edc6a8..a826ae083f439777cc4946ecfa93b7a488a20d20 100644 (file)
 #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);
 }