Lines Matching full:pl
39 crypto_get_provider_list_t *pl; in kernel_get_slot_number() local
42 pl = malloc(sizeof (crypto_get_provider_list_t)); in kernel_get_slot_number()
43 if (pl == NULL) in kernel_get_slot_number()
46 pl->pl_count = 0; in kernel_get_slot_number()
47 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_LIST, pl)) < 0) { in kernel_get_slot_number()
54 if (pl->pl_return_value != CRYPTO_SUCCESS) { in kernel_get_slot_number()
55 rv = crypto2pkcs11_error_number(pl->pl_return_value); in kernel_get_slot_number()
62 slot_count = pl->pl_count; in kernel_get_slot_number()
65 (void) free(pl); in kernel_get_slot_number()
173 crypto_get_provider_list_t *pl = NULL; in kernel_slottable_init() local
217 pl = malloc(slot_count * sizeof (crypto_get_provider_list_t)); in kernel_slottable_init()
218 if (pl == NULL) { in kernel_slottable_init()
223 pl->pl_count = slot_count; in kernel_slottable_init()
224 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_LIST, pl)) < 0) { in kernel_slottable_init()
232 if (pl->pl_return_value != CRYPTO_SUCCESS) { in kernel_slottable_init()
233 rv = crypto2pkcs11_error_number(pl->pl_return_value); in kernel_slottable_init()
241 slot_table[i]->sl_provider_id = pl->pl_list[i].pe_provider_id; in kernel_slottable_init()
255 (void) free(pl); in kernel_slottable_init()
265 (void) free(pl); in kernel_slottable_init()