OSF DCE Application Development Guide--Introduction and Style Guide
Security
/******
*
* server_rdacl_cleanup -- Called at cleanup time to
* unregister the rdacl interface.
*
*
* Called from main().
*
******/
void server_rdacl_cleanup(
rpc_binding_vector_t *binding_vector, /* Binding handles from RPC runtime. */
uuid_vector_t *object_uuid_vector, /* Server instance UUID(s). */
unsigned32 *status)
{
*status = error_status_ok;
rpc_ep_unregister(rdaclif_v1_0_s_ifspec,
binding_vector,
object_uuid_vector,
status);
}
3.4.3.22 The sample_mgmt_auth Routine
The sample_mgmt_auth() routine assesses the authorization of any client attempting to
execute a remote management operation on the sample application server.
/******
*
* sample_mgmt_auth -- Management authorization callback function.
*
* This is the routine that is implicitly called to test authorization
* whenever someone tries to use the mgmt interface to tinker with us
* or our ACLs.
*
* The callback is set up by a call to rpc_mgmt_set_authorization() in
* server_acl_mgr_setup().
*
******/
124246 Tandem Computers Incorporated 3− 45