OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
if (*status != error_status_ok)
{
print_server_error("rpc_ns_binding_unexport()",
*status);
return;
}
}
}
else
/* I.e., there is only one server instance to unexport... */
{
dce_svc_printf(UNEXPORTING_FROM_MSG, entryname_vector->name[0]);
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling rpc_ns_binding_unexport()"));
rpc_ns_binding_unexport(rpc_c_ns_syntax_default,
entryname_vector->name[0],
interface,
NULL,
status);
if (*status != error_status_ok)
{
print_server_error("rpc_ns_binding_unexport()",
*status);
return;
}
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Exiting server_cleanup_objects()"));
}
/******
*
* managekey -- Make sure the server principal’s key is changed before
* it expires.
*
* The key management thread which runs this function is created
* in server_get_identity(), below.
*
*
******/
void managekey(char *prin_name){ /* Server principal name */
unsigned32 status;
status = error_status_ok;
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Entering managekey()"));
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling sec_key_mgmt_manage_key()"));
sec_key_mgmt_manage_key(
rpc_c_authn_dce_secret, /* Authentication protocol. */
124246 Tandem Computers Incorporated A− 27