OSF DCE Application Development Guide--Introduction and Style Guide

OSF DCE Application Development Guide—Introduction and Style Guide
&authorized, /* Will be TRUE or FALSE on return. */
remote_status);
if (*remote_status != error_status_ok)
{
print_manager_error("dce_acl_is_client_authorized()",
*remote_status);
return;
}
if (authorized)
{
DCE_SVC_DEBUG((smp_svc_handle, smp_s_manager, svc_c_debug8,
"Call authorized"));
/* HERE’S WHERE WE SHOULD ACTUALLY DO SOMETHING! */
*status = error_status_ok;
}
else
{
DCE_SVC_DEBUG((smp_svc_handle, smp_s_manager, svc_c_debug8,
"Call not authorized"));
/* Return no_permissions status to client... */
*status = no_permissions;
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_manager, svc_c_debug6,
"Successfully exiting sample_call()"));
}
/******
*
* sample_get_text -- Extracts and returns an object’s text information.
*
*
* Called from the client using its "object-bound" handle.
*
******/
void sample_get_text(
rpc_binding_handle_t h, /* Client binding handle passed into the */
/* server stub. sec_acl_bind() is used to */
/* create this handle. */
uuid_t object_uuid, /* Desired object’s UUID. */
idl_char text[TEXT_SIZE], /* To return extracted text information. */
idl_long_int *status,
error_status_t *remote_st /* To return status. */
)
{
A 76 Tandem Computers Incorporated 124246