STEP01x: WIP: completly faked up dcerpc_call_handle_get_pipes_struct call.
authorGünther Deschner <gd@samba.org>
Wed, 22 Jul 2015 16:25:40 +0000 (18:25 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 10:58:04 +0000 (12:58 +0200)
Pair-Programmed-With: Jose A. Rivera <jarrpa@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
source3/rpc_server/rpc_pipes.h
source3/rpc_server/srv_pipe.c

index 8a8f8e58169182006f492fef9c3f26ae45111dd5..5403aa4948c6a6c061a2d4d8ba6ac734677da8b0 100644 (file)
@@ -222,4 +222,7 @@ void *_policy_handle_find(struct pipes_struct *p,
        (_type *)_policy_handle_find((_p), (_hnd), (_access_required), \
                                     (_access_granted), #_type, __location__, (_pstatus))
 
+struct dcerpc_call_handle;
+struct pipes_struct *dcerpc_call_handle_get_pipes_struct(struct dcerpc_call_handle *call);
+
 #endif /* _RPC_PIPES_H_ */
index fec8d276e13f6956afbee3e87e348fc4a1a7d946..da9af4e792963668465c17e730f41baeca9d6cd9 100644 (file)
@@ -1885,3 +1885,16 @@ done:
        /* pkt and p->in_data.pdu.data freed by caller */
 }
 
+/* FIXME of course */
+struct pipes_struct *dcerpc_call_handle_get_pipes_struct(struct dcerpc_call_handle *call)
+{
+       struct pipes_struct *p;
+
+       p = talloc_zero(call, struct pipes_struct);
+       if (p == NULL) {
+               DEBUG(0,("out of memory\n"));
+               return NULL;
+       }
+
+       return p;
+}