if (privKey == NULL) { return NULL; }
pk11_GetPublicKey(PK11TokenObject *object){    NSSLOWKEYPublicKey *pubKey;    NSSLOWKEYPrivateKey *privKey;    if (object->obj.objclass != CKO_PUBLIC_KEY) {	return NULL;    }    if (object->obj.objectInfo) {	return (NSSLOWKEYPublicKey *)object->obj.objectInfo;    }    privKey = nsslowkey_FindKeyByPublicKey(object->obj.slot->keyDB,				&object->dbKey, object->obj.slot->password);    pubKey = nsslowkey_ConvertToPublicKey(privKey);    nsslowkey_DestroyPrivateKey(privKey);    object->obj.objectInfo = (void *) pubKey;    object->obj.infoFree = (PK11Free) nsslowkey_DestroyPublicKey ;    return pubKey;}