OSF DCE Application Development Guide--Introduction and Style Guide
Security
/* Set up remote management authorization to use the ACL manager. */
/* Note that the first parameter to this call is the address of a */
/* management authorization callback routine, which is defined */
/* later in this file... */
rpc_mgmt_set_authorization_fn(sample_mgmt_auth, status);
/* Finally, register the rdacl interface with the runtime... */
rpc_server_register_if(
rdaclif_v1_0_s_ifspec, /* Interface to register. */
NULL, /* Manager type UUID. */
(rpc_mgr_epv_t) &dce_acl_v1_0_epv, /* Entry point */
/* vector. */
status);
}
3.4.3.19 The server_acl_mgr_close Routine
The server_acl_mgr_close() routine closes the ACL databases.
/******
*
* server_acl_mgr_close -- Called at cleanup time to close
* the three ACL databases.
*
*
* Called from main().
*
******/
void server_acl_mgr_close(
dce_db_handle_t *db_acl, /* ACL UUID-indexed database. */
dce_db_handle_t *db_object, /* Object UUID-indexed database. */
dce_db_handle_t *db_name, /* Name-indexed database. */
unsigned32 *status)
{
*status = error_status_ok;
/* Close the ACL UUID-indexed database... */
dce_db_close(db_acl, status);
/* Close the Object UUID-indexed database... */
dce_db_close(db_object, status);
/* Close the name-indexed database... */
dce_db_close(db_name, status);
}
124246 Tandem Computers Incorporated 3− 43