See the kmftypes.h file for definitions of structures and types. This example uses variables of the following KMF types.
Session handle for KMF calls
Return code for all KMF calls
Handle to a KMF key
KMF credential
Make sure this is big enough
Keystore type, such as KMF_KEYSTORE_PK11TOKEN
Key type, such as KMF_RSA
Data record that gets signed
Distinguished name record
Final certificate data record
Variable length integer