s4-witness: add empty s4 witness server stubs
authorGünther Deschner <gd@samba.org>
Mon, 10 Aug 2015 15:26:18 +0000 (17:26 +0200)
committerGünther Deschner <gd@samba.org>
Sun, 3 Feb 2019 09:26:17 +0000 (10:26 +0100)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
source4/rpc_server/witness/dcesrv_witness.c [new file with mode: 0644]

diff --git a/source4/rpc_server/witness/dcesrv_witness.c b/source4/rpc_server/witness/dcesrv_witness.c
new file mode 100644 (file)
index 0000000..5b7069a
--- /dev/null
@@ -0,0 +1,84 @@
+/*
+   Unix SMB/CIFS implementation.
+
+   endpoint server for the witness pipe
+
+   Copyright (C) YOUR NAME HERE YEAR
+
+   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/>.
+*/
+
+#include "includes.h"
+#include "rpc_server/dcerpc_server.h"
+#include "librpc/gen_ndr/ndr_witness.h"
+#include "rpc_server/common/common.h"
+
+
+/*
+  witness_GetInterfaceList
+*/
+static WERROR dcesrv_witness_GetInterfaceList(struct dcesrv_call_state *dce_call,
+                                             TALLOC_CTX *mem_ctx,
+                                             struct witness_GetInterfaceList *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+  witness_Register
+*/
+static WERROR dcesrv_witness_Register(struct dcesrv_call_state *dce_call,
+                                     TALLOC_CTX *mem_ctx,
+                                     struct witness_Register *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+  witness_UnRegister
+*/
+static WERROR dcesrv_witness_UnRegister(struct dcesrv_call_state *dce_call,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct witness_UnRegister *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+  witness_AsyncNotify
+*/
+static WERROR dcesrv_witness_AsyncNotify(struct dcesrv_call_state *dce_call,
+                                        TALLOC_CTX *mem_ctx,
+                                        struct witness_AsyncNotify *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/*
+  witness_RegisterEx
+*/
+static WERROR dcesrv_witness_RegisterEx(struct dcesrv_call_state *dce_call,
+                                       TALLOC_CTX *mem_ctx,
+                                       struct witness_RegisterEx *r)
+{
+       DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+}
+
+
+/* include the generated boilerplate */
+#include "librpc/gen_ndr/ndr_witness_s.c"