pkc_plcy_retrieve_keyinfo(3sec)Retrieves keys for specified principal Synopsis #include <pkc_certs.h> unsigned32 pkc_plcy_retrieve_keyinfo( gss_OID policy, const void * trust_base_handle, const x500name & subjectName, const utc_t * date, const uuid_t & desired_domain, pkc_key_usage_t desired_usage, char initial_explicit_policy_required, void ** keys_handle); Parameters Input
policy
trust_base_handle
subjectName
date
desired_domain
desired_usage
initial_explicit_policy_required Output
keys_handle Description pkc_plcy_retrieve_keyinfo(3sec) searches the list of registered policies for implementations of the specified policy. If found, the implementation is opened, if necessary, and its (retrieve_key_info)( ) function is invoked. Necessary mutex protection around non-thread safe policy implementations is provided. The desired_usage parameter is a bit mask, formed by AND-ing together one or more of the following constants:
PKC_KEY_USAGE_AUTHENTICATION
PKC_KEY_USAGE_INTEGRITY
PKC_KEY_USAGE_KEY_ENCIPHERMENT
PKC_KEY_USAGE_DATA_ENCIPHERMENT
PKC_KEY_USAGE_KEY_AGREEMENT
PKC_KEY_USAGE_NONREPUDIATION
PKC_CAKEY_USAGE_KEY_CERT_SIGN
PKC_CAKEY_USAGE_OFFLINE_CRL_SIGN
PKC_CAKEY_USAGE_TRANSACTION_SIGN A NULL can be specified for desired_usage to indicate that keys for any usage should be retrieved. Return Values pkc_s_success peration successfully completed. Errors Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. Related Information
Functions:
|