Lines Matching refs:nss_slot

200 	PK11SlotInfo *nss_slot, KMF_CREDENTIAL *cred)
208 nss_slot == NULL) {
212 if (PK11_IsLoggedIn(nss_slot, NULL)) {
217 nssrv = PK11_Authenticate(nss_slot, PR_TRUE, (void *)cred->cred);
221 PK11_FreeSlot(nss_slot);
308 PK11SlotInfo **nss_slot)
324 *nss_slot = PK11_GetInternalKeySlot();
329 *nss_slot = PK11_FindSlotByName(slotlabel);
332 if (*nss_slot == NULL) {
341 if (PK11_NeedUserInit(*nss_slot)) {
589 PK11SlotInfo *nss_slot = NULL;
603 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
640 rv = nss_find_matching_certs(nss_slot, issuer, subject, serial,
657 if (nss_slot != NULL) {
658 PK11_FreeSlot(nss_slot);
692 PK11SlotInfo *nss_slot = NULL;
702 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
754 rv = nss_find_matching_certs(nss_slot, issuer, subject, serial,
775 if (nss_slot != NULL) {
776 PK11_FreeSlot(nss_slot);
815 PK11SlotInfo *nss_slot = NULL;
832 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
842 rv = nss_authenticate(handle, nss_slot, &cred);
957 NSSprivkey = PK11_GenerateKeyPair(nss_slot, mechanism, nssparams,
1007 if (nss_slot != NULL)
1008 PK11_FreeSlot(nss_slot);
1130 PK11SlotInfo *nss_slot = NULL;
1159 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
1169 rv = nss_authenticate(handle, nss_slot, &cred);
1232 PK11SlotInfo *nss_slot = NULL;
1243 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
1252 rv = nss_authenticate(handle, nss_slot, &cred);
1273 privkey = PK11_FindPrivateKeyFromCert(nss_slot, nss_cert, NULL);
1371 PK11SlotInfo *nss_slot = NULL;
1392 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
1401 rv = nss_authenticate(handle, nss_slot, cred);
1420 publist = PK11_ListPublicKeysInSlot(nss_slot, findLabel);
1426 prilist = PK11_ListPrivKeysInSlot(nss_slot, findLabel, NULL);
1432 symlist = PK11_ListFixedKeysInSlot(nss_slot, findLabel, NULL);
1578 if (nss_slot != NULL) {
1579 PK11_FreeSlot(nss_slot);
1906 PK11SlotInfo *nss_slot = NULL;
1976 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
1986 rv = nss_authenticate(handle, nss_slot, &cred);
1992 nsskey = PK11_TokenKeyGen(nss_slot, keyType, NULL, keySize / 8, NULL,
2014 if (nss_slot != NULL)
2015 PK11_FreeSlot(nss_slot);
2100 PK11SlotInfo *nss_slot = NULL;
2115 ret = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2118 rv = PK11_InitPin(nss_slot, NULL, newcred.cred);
2126 ret = nss_authenticate(handle, nss_slot, &oldcred);
2130 rv = PK11_ChangePW(nss_slot, oldcred.cred, newcred.cred);
2146 PK11SlotInfo *nss_slot = NULL;
2159 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2169 rv = nss_authenticate(handle, nss_slot, &cred);
2243 ckrv = PK11_ImportPrivateKeyInfo(nss_slot, &rpk, &nickname,
2255 pk = PK11_ImportPublicKey(nss_slot, publicKey, PR_TRUE);
2264 pk = PK11_LoadPrivKey(nss_slot, privKey, NULL, PR_TRUE,
2277 PK11_FreeSlot(nss_slot);
2286 store_cert(KMF_HANDLE_T handle, PK11SlotInfo *nss_slot, KMF_DATA *cert,
2296 if (nss_slot == NULL || cert == NULL)
2308 nss_rv = PK11_ImportCert(nss_slot, nss_cert, CK_INVALID_HANDLE,
2356 PK11SlotInfo *nss_slot = NULL;
2365 ret = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2380 ret = store_cert(handle, nss_slot, cert, label, trust_flag);
2383 if (nss_slot != NULL) {
2384 PK11_FreeSlot(nss_slot);
2395 PK11SlotInfo *nss_slot = NULL;
2408 ret = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2446 ret = store_cert(handle, nss_slot, cptr, label, trust_flag);
2464 PK11SlotInfo *nss_slot = NULL;
2478 ret = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2532 nss_crl = PK11_ImportCRL(nss_slot, &crlDER, NULL, SEC_CRL_TYPE,
2542 if (nss_slot != NULL) {
2543 PK11_FreeSlot(nss_slot);
2568 PK11SlotInfo *nss_slot = NULL;
2581 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2698 if (nss_slot != NULL) {
2699 PK11_FreeSlot(nss_slot);
2726 PK11SlotInfo *nss_slot = NULL;
2742 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2819 if (nss_slot != NULL) {
2820 PK11_FreeSlot(nss_slot);
2846 PK11SlotInfo *nss_slot = NULL;
2861 rv = do_nss_init(handle, numattr, attrlist, FALSE, &nss_slot);
2921 if (nss_slot != NULL) {
2922 PK11_FreeSlot(nss_slot);