|   
 pkc_get_key_trust_info(3sec)Returns information about key trust Synopsis #include <pkc_api.h> unsigned32 pkc_get_key_trust_info( keyinfo_t * keyinfobase, unsigned key_index, certification_flags_t * flags, uuid_t * key_domain, unsigned long * key_usages); Parameters Input 
keyinfobase  
key_index  Output 
flags  
key_domain  
key_usages  Description pkc_get_key_trust_info(3sec) returns a set of flags describing the trust that can be placed in the key. The desired information is extracted by the routine from the keyinfo_t structure, which must first be obtained by the caller by a call to the pkc_retrieve_keyinfo(3sec) routine. The returned certification_flags_t structure describes the trust that can be placed in a returned key. It contains the following fields: 
· 	trust_type  
 -  	UNTRUSTED  
 -  	DIRECT_TRUST  
 -  	CERTIFIED_TRUST  
· 	missing_crls  
· 	revoked  If key_domain and key_usages are passed as non-NULL pointers, upon successful return these parameters will describe the domain and permitted usage(s) of the specified key. Policies that do not distinguish keys according to domain will indicate a domain of sec_pk_domain_unspecified; policies that do not distinguish keys according to usage will indicate all usages are permitted. The returned key_usages is a bit mask which describes the usage(s), if any, which the key is restricted to. The value is 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 returned key_usages value of NULL (or a value with all bits set) means that the key is suitable for any usage. Return Values 
pkc_s_success  Errors Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. Related Information 
Functions:  
 
 
 |