OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
dce_acl_obj_free_entries(new_obj_acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_acl_obj_free_entries()",
*status);
return;
}
/* ...end of object ACL creation code. */
/********************************************************************/
}
else /* ACL databases already exist; get the two ACL UUIDs... */
{
/* This is a call to sample_resolve_by_name() (see below); */
/* it gives us the UUID of the ACL of the object whose */
/* name we pass it... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling (*resolver)()"));
(*resolver)(
NULL, /* No client bind handle; local call. */
object_name, /* Object whose ACL UUID we want. */
0, /* Type of ACL we want UUID of. */
&sample_acl_mgr_uuid, /* Object’s manager type. */
0, /* Ignored as far as we’re concerned. */
NULL, /* "resolver_arg"; unused. */
object_acl_uuid, /* Will contain object ACL UUID. */
status);
if (*status != error_status_ok)
{
print_server_error("resolver function (*)", *status);
return;
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling (*resolver)()"));
(*resolver)(
NULL, /* No client bind handle; local call. */
(sec_acl_component_name_t)MGMT_OBJ_NAME, /* We want */
/* mgmt object’s ACL UUID. */
0, /* Type of ACL we want UUID of. */
&mgmt_acl_mgr_uuid, /* Object’s manager type=mgmt. */
0, /* Ignored as far as we’re concerned. */
NULL, /* "resolver_arg"; ignored. */
mgmt_acl_uuid, /* Will contain mgmt ACL UUID. */
status);
if (*status != error_status_ok)
{
print_server_error("resolver function (*)", *status);
return;
}
}
124246 Tandem Computers Incorporated A− 51










