PreviousNext

The managekey Routine

The managekey( ) routine manages the server principal's key, making sure that it never expires.

/******
*
* 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;

sec_key_mgmt_manage_key(
rpc_c_authn_dce_secret, /* Authentication protocol */
KEYTAB, /* Local key file */
(idl_char *)prin_name, /* Principal name */
&status);

}