Lines Matching refs:nattrs

3746     unsigned int nattrs;
3759 nattrs = 2;
3763 attrs[nattrs].type = CKA_ID;
3764 attrs[nattrs].pValue = id_cryptoctx->cert_id;
3765 attrs[nattrs].ulValueLen = id_cryptoctx->cert_id_len;
3766 nattrs++;
3769 attrs[nattrs].type = CKA_LABEL;
3770 attrs[nattrs].pValue = id_cryptoctx->cert_label;
3771 attrs[nattrs].ulValueLen = strlen(id_cryptoctx->cert_label);
3772 nattrs++;
3775 r = id_cryptoctx->p11->C_FindObjectsInit(session, attrs, nattrs);
4370 unsigned int nattrs = 0;
4377 attrs[nattrs].type = CKA_CLASS;
4378 attrs[nattrs].pValue = &cls;
4379 attrs[nattrs].ulValueLen = sizeof cls;
4380 nattrs++;
4390 attrs[nattrs].type = usage;
4391 attrs[nattrs].pValue = &true_false;
4392 attrs[nattrs].ulValueLen = sizeof true_false;
4393 nattrs++;
4397 attrs[nattrs].type = CKA_KEY_TYPE;
4398 attrs[nattrs].pValue = &keytype;
4399 attrs[nattrs].ulValueLen = sizeof keytype;
4400 nattrs++;
4402 attrs[nattrs].type = CKA_ID;
4403 attrs[nattrs].pValue = id_cryptoctx->cert_id;
4404 attrs[nattrs].ulValueLen = id_cryptoctx->cert_id_len;
4405 nattrs++;
4407 r = id_cryptoctx->p11->C_FindObjectsInit(id_cryptoctx->session, attrs, nattrs);
4440 nattrs = 0;
4442 attrs[nattrs].type = CKA_CLASS;
4443 attrs[nattrs].pValue = &cls;
4444 attrs[nattrs].ulValueLen = sizeof cls;
4445 nattrs++;
4449 attrs[nattrs].type = usage;
4450 attrs[nattrs].pValue = &true_false;
4451 attrs[nattrs].ulValueLen = sizeof true_false;
4452 nattrs++;
4456 attrs[nattrs].type = CKA_KEY_TYPE;
4457 attrs[nattrs].pValue = &keytype;
4458 attrs[nattrs].ulValueLen = sizeof keytype;
4459 nattrs++;
4473 attrs[nattrs].type = CKA_MODULUS;
4474 attrs[nattrs].ulValueLen = n_len;
4475 attrs[nattrs].pValue = n_bytes;
4477 nattrs++;
4479 r = id_cryptoctx->p11->C_FindObjectsInit(id_cryptoctx->session, attrs, nattrs);