PreviousNext

pkc_get_key_count(3sec)

Returns number of keys for a principal

Synopsis

#include <pkc_api.h>

unsigned32 pkc_get_key_count(

keyinfo_t * keyinfobase,

size_t * key_count);

Parameters

Input

keyinfobase
Key information returned by pkc_retrieve_keyinfo(3sec).

Output

key_count
Number of keys.

Description

pkc_get_key_count(3sec) returns the number of keys within a keyinfo_t structure.

The desired information is extracted from the keyinfo_t structure, which must first be obtained by the caller by a call to the pkc_retrieve_keyinfo(3sec) routine.

Return Values

pkc_s_success
Operation successfully completed.

Errors

Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.

Related Information

Functions:
pkc_intro(3sec)
pkc_append_to_trustlist(3sec)
pkc_free(3sec)
pkc_free_keyinfo(3sec)
pkc_free_trustbase(3sec)
pkc_free_trustlist(3sec)
pkc_get_key_certifier_count(3sec)
pkc_get_key_certifier_info(3sec)
pkc_get_key_data(3sec)
pkc_get_key_trust_info(3sec)
pkc_get_registered_policies(3sec)
pkc_init_trustbase(3sec)
pkc_init_trustlist(3sec)
pkc_retrieve_keyinfo(3sec)
pkc_retrieve_keylist(3sec)