s3: rpc_server: Remove SAMR specific policy_handle_create() function
authorSamuel Cabrero <scabrero@samba.org>
Thu, 7 May 2020 11:29:29 +0000 (13:29 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 24 May 2020 23:55:36 +0000 (23:55 +0000)
commit2bde40762a9d6b6698de281db3303cb45a304398
tree3ff14de8f934ef08a7371ce17a85b8d0a9901a2a
parentda9749acb33d06a983b4c5117a74f0d53e0c0e88
s3: rpc_server: Remove SAMR specific policy_handle_create() function

Now that we pass the handle type to the generic handle creation and find
functions we can drop the specific SAMR ones.

The policy_handle_create() function labeled the talloc chunk used to
allocate the handle's associated data, and the policy_handle_find() is
checking the name matches with the expected data. The check is performed
now by the generic functions based on the handle type so we can drop
these SAMR specific functions.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_server/rpc_handles.c
source3/rpc_server/rpc_pipes.h
source3/rpc_server/samr/srv_samr_nt.c