Lines Matching refs:slot
120 char* PKCS11PasswordFunc(PK11SlotInfo* slot, PRBool retry, void* arg) {
125 std::string password = delegate->RequestPassword(PK11_GetTokenName(slot),
371 // read from this slot without requiring a call to C_Login.
386 << ", got tpm slot: " << !!tpm_args->tpm_slot;
392 // have a test DB open, pretend that it is the TPM slot.
434 // Note that CK_SLOT_ID is an unsigned long, but cryptohome gives us the slot
447 PK11SlotInfo* slot = SECMOD_LookupSlot(chaps_module->moduleID, slot_id);
448 if (!slot)
449 LOG(ERROR) << "TPM slot " << slot_id << " not found.";
450 return crypto::ScopedPK11Slot(slot);
517 DVLOG(2) << "Got tpm slot for " << username_hash << " "
526 VLOG(1) << "using software private slot for " << username_hash;
578 void SetSystemKeySlotForTesting(ScopedPK11Slot slot) {
581 DCHECK(!slot || !test_system_slot_);
582 test_system_slot_ = slot.Pass();
614 // InitializeTPMTokenAndSystemSlot with slot 0. If the system slot is
615 // disabled, tpm_slot_ will be the first user's slot instead. Can that be
731 PK11SlotInfo* slot = PK11_GetInternalKeySlot();
732 if (slot) {
735 if (PK11_NeedUserInit(slot))
736 PK11_InitPin(slot, NULL, NULL);
737 PK11_FreeSlot(slot);
1023 void SetSystemKeySlotForTesting(ScopedPK11Slot slot) {
1024 g_nss_singleton.Get().SetSystemKeySlotForTesting(slot.Pass());