Lines Matching refs:n_attributes

355         CK_ULONG n_attributes, a, n_objects;  in pkcs11_token_find_x509_certificate()  local
364 attributes = p11_kit_uri_get_attributes(search_uri, &n_attributes); in pkcs11_token_find_x509_certificate()
365 for (a = 0; a < n_attributes; a++) { in pkcs11_token_find_x509_certificate()
405 … attributes_buffer = new(CK_ATTRIBUTE, n_attributes + !found_class + !found_certificate_type); in pkcs11_token_find_x509_certificate()
409 memcpy(attributes_buffer, attributes, sizeof(CK_ATTRIBUTE) * n_attributes); in pkcs11_token_find_x509_certificate()
414 attributes_buffer[n_attributes++] = (CK_ATTRIBUTE) { in pkcs11_token_find_x509_certificate()
424 attributes_buffer[n_attributes++] = (CK_ATTRIBUTE) { in pkcs11_token_find_x509_certificate()
434 rv = m->C_FindObjectsInit(session, attributes, n_attributes); in pkcs11_token_find_x509_certificate()
519 CK_ULONG n_attributes, a, n_objects; in pkcs11_token_find_private_key() local
528 attributes = p11_kit_uri_get_attributes(search_uri, &n_attributes); in pkcs11_token_find_private_key()
529 for (a = 0; a < n_attributes; a++) { in pkcs11_token_find_private_key()
585 …attributes_buffer = new(CK_ATTRIBUTE, n_attributes + !found_decrypt + !found_class + !found_key_ty… in pkcs11_token_find_private_key()
589 memcpy(attributes_buffer, attributes, sizeof(CK_ATTRIBUTE) * n_attributes); in pkcs11_token_find_private_key()
594 attributes_buffer[n_attributes++] = (CK_ATTRIBUTE) { in pkcs11_token_find_private_key()
604 attributes_buffer[n_attributes++] = (CK_ATTRIBUTE) { in pkcs11_token_find_private_key()
614 attributes_buffer[n_attributes++] = (CK_ATTRIBUTE) { in pkcs11_token_find_private_key()
624 rv = m->C_FindObjectsInit(session, attributes, n_attributes); in pkcs11_token_find_private_key()