sec_key_mgmt_set_key(3sec)Inserts a key value into the local storage Synopsis
#include <dce/keymgmt.h> Parameters Input
authn_service
This parameter can specify either the local key file or an argument to the get_key_fn key acquisition routine of the rpc_server_register_auth_info routine. A value of NULL specifies that the default key file (/krb/v5srvtab) should be used. A key file name specifies that file should be used as the key file. The file name must begin with FILE:. If the file name does not begin with FILE:, the code will add it. Any other value specifies an argument for the get_key_fn key acquisition routine. See the rpc_server_register_auth_info( ) reference page for more information.
principal_name
key_vno
keydata Output
status
Description In some circumstances, a server may only wish to change its key in the local key storage, and not in the DCE Registry. For example, a database system may have several replicas of a master database, managed by servers running on independent machines. Since these servers together represent only one service, they should all share the same key. This way, a user with a ticket to use the database can choose whichever server is least busy. To change the database key, the master server would signal all the replica (slave) servers to change the current key in their local key storage. They would use the sec_key_mgmt_set_key( ) routine, which does not communicate with the DCE Registry. Once all the slaves have complied, the master server can then change the Registry key and its own local storage. Files
/usr/include/dce/keymgmt.idl Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
sec_key_mgmt_e_key_unavailable
sec_key_mgmt_e_authn_invalid
sec_key_mgmt_e_unauthorized
sec_key_mgmt_e_key_unsupported
sec_key_mgmt_e_key_version_ex
error_status_ok
Related Information sec_key_mgmt_gen_rand_key(3sec)
|