NPKIGetHandleToUserKey
Returns a NICI Object handle to a user key, specified by nickname (formerly NWPKIGetHandleToUserKey).
#include "npkikey.h"
NWRCODE NPKIGetHandleToUserKey(
const NPKIContext context,
const unicode *nickname,
NICI_CC_HANDLE ccsCtx,
NICI_OBJECT_HANDLE *pkiKeyHandle);
Returns 0 if successful, or an eDirectory, NICI, or PKI error code if not successful.
0x2222 93 09 Read Key
After a successful call the pkiKeyHandle contains a NICI object handle to the private key that can then be passed into other NICI calls to encrypt, decrypt or verify data.