Lines Matching refs:attrs

3923     CK_ATTRIBUTE attrs[4];
3933 attrs[0].type = CKA_CLASS;
3934 attrs[0].pValue = &cls;
3935 attrs[0].ulValueLen = sizeof cls;
3938 attrs[1].type = CKA_CERTIFICATE_TYPE;
3939 attrs[1].pValue = &certtype;
3940 attrs[1].ulValueLen = sizeof certtype;
3946 attrs[nattrs].type = CKA_ID;
3947 attrs[nattrs].pValue = id_cryptoctx->cert_id;
3948 attrs[nattrs].ulValueLen = id_cryptoctx->cert_id_len;
3952 attrs[nattrs].type = CKA_LABEL;
3953 attrs[nattrs].pValue = id_cryptoctx->cert_label;
3954 attrs[nattrs].ulValueLen = strlen(id_cryptoctx->cert_label);
3958 r = id_cryptoctx->p11->C_FindObjectsInit(session, attrs, nattrs);
3983 attrs[0].type = CKA_VALUE;
3984 attrs[0].pValue = NULL;
3985 attrs[0].ulValueLen = 0;
3987 attrs[1].type = CKA_ID;
3988 attrs[1].pValue = NULL;
3989 attrs[1].ulValueLen = 0;
3993 attrs,
4003 cert = malloc((size_t) attrs[0].ulValueLen + 1);
4008 cert_id = malloc((size_t) attrs[1].ulValueLen + 1);
4016 attrs[0].type = CKA_VALUE;
4017 attrs[0].pValue = cert;
4019 attrs[1].type = CKA_ID;
4020 attrs[1].pValue = cert_id;
4023 obj, attrs, 2)) != CKR_OK) {
4033 (int) attrs[0].ulValueLen, (int) cert_id[0],
4034 (int) attrs[1].ulValueLen);
4037 x = d2i_X509(NULL, &cp, (int) attrs[0].ulValueLen);
4052 id_cryptoctx->creds[i]->cert_id_len = attrs[1].ulValueLen;
4550 CK_ATTRIBUTE attrs[4];
4560 attrs[nattrs].type = CKA_CLASS;
4561 attrs[nattrs].pValue = &cls;
4562 attrs[nattrs].ulValueLen = sizeof cls;
4573 attrs[nattrs].type = usage;
4574 attrs[nattrs].pValue = &true_false;
4575 attrs[nattrs].ulValueLen = sizeof true_false;
4580 attrs[nattrs].type = CKA_KEY_TYPE;
4581 attrs[nattrs].pValue = &keytype;
4582 attrs[nattrs].ulValueLen = sizeof keytype;
4585 attrs[nattrs].type = CKA_ID;
4586 attrs[nattrs].pValue = id_cryptoctx->cert_id;
4587 attrs[nattrs].ulValueLen = id_cryptoctx->cert_id_len;
4590 r = id_cryptoctx->p11->C_FindObjectsInit(id_cryptoctx->session, attrs, nattrs);
4625 attrs[nattrs].type = CKA_CLASS;
4626 attrs[nattrs].pValue = &cls;
4627 attrs[nattrs].ulValueLen = sizeof cls;
4632 attrs[nattrs].type = usage;
4633 attrs[nattrs].pValue = &true_false;
4634 attrs[nattrs].ulValueLen = sizeof true_false;
4639 attrs[nattrs].type = CKA_KEY_TYPE;
4640 attrs[nattrs].pValue = &keytype;
4641 attrs[nattrs].ulValueLen = sizeof keytype;
4656 attrs[nattrs].type = CKA_MODULUS;
4657 attrs[nattrs].ulValueLen = n_len;
4658 attrs[nattrs].pValue = n_bytes;
4662 r = id_cryptoctx->p11->C_FindObjectsInit(id_cryptoctx->session, attrs, nattrs);