pk11_zeroTerminatedToBlankPadded(info->label,sizeof(info->label)); pk11_zeroTerminatedToBlankPadded(info->manufacturerID, sizeof(info->manufacturerID)); pk11_zeroTerminatedToBlankPadded(info->model,sizeof(info->model)); pk11_zeroTerminatedToBlankPadded(info->serialNumber, sizeof(info->serialNumber));
PK11_GetTokenInfo(PK11SlotInfo *slot, CK_TOKEN_INFO *info){    CK_RV crv;    if (!slot->isThreadSafe) PK11_EnterSlotMonitor(slot);    crv = PK11_GETTAB(slot)->C_GetTokenInfo(slot->slotID,info);    if (!slot->isThreadSafe) PK11_ExitSlotMonitor(slot);    if (crv != CKR_OK) {	PORT_SetError(PK11_MapError(crv));	return SECFailure;    }    return SECSuccess;}