pkc_retrieve_keyinfo(3sec)Returns information about a key Synopsis #include <pkc_api.h> unsigned32 pkc_retrieve_keyinfo( trustbase_t * base, char * name, utc_t * key_date, uuid_t * key_domain, unsigned long * key_usages, selection_t * sel, keyinfo_t ** keyinfobase); Parameters Input
base
name
key_date
key_domain
key_usages
sel Output
keyinfobase Description pkc_retrieve_keyinfo(3sec) returns a keyinfo_t structure describing the set of trusted keys that are valid for the specified principal at the specified date, under any additional constraints specified in sel. The key_usages parameter consists of 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 key_usages to indicate that keys for any usage should be retrieved. This routine must be called before any of the following routines can be called: · pkc_get_key_count(3sec) · pkc_get_key_data(3sec) · pkc_get_key_trust_info(3sec) · pkc_get_key_certifier_count(3sec) · pkc_get_key_certifier_info(3sec) Upon successful return, keyinfobase will contain a keyinfo_t structure which must be passed in calls to the above routines, which then extract and return the requested information. The keyinfo_t structure must be released by a call to pkc_free_keyinfo(3sec) when the application has finished with it. Return Values
pkc_s_success Errors Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. Related Information
Functions:
|