Files
cryptsetup/tests
Ondrej Kozina fb021bac3d Fix token assignement API.
There was a bug in both crypt_token_assign_keyslot and
crypt_token_unsassign_keyslot where CRYPT_ANY_TOKEN
special value could be passed in token parameter.

It would correctly assign/unassign all tokens to/from
the specified keyslot (or from any in case of CRYPT_ANY_SLOT),
but it returned -1 (CRYPT_ANY_TOKEN) which fited error return
values as per API documentation.

We fixed that by not supporting CRYPT_ANY_TOKEN since it does
not make much sense. It can be workarounded by iterating over
all available tokens and calling crypt_token_assign_keyslot or
crypt_token_unassign_keyslot accodingly.

Fixes: #914.
2024-11-15 15:24:14 +01:00
..
2024-03-07 11:30:21 +00:00
2024-03-07 11:30:21 +00:00
2024-06-03 16:38:15 +00:00
2024-11-15 15:24:14 +01:00
2024-08-26 17:40:04 +00:00
2022-01-21 12:29:36 +01:00
2024-06-03 16:38:15 +00:00
2023-11-15 18:40:44 +01:00
2022-11-14 21:50:18 +01:00
2024-03-07 11:30:21 +00:00
2023-11-15 18:40:44 +01:00
2024-06-03 16:38:15 +00:00
2024-06-03 16:38:15 +00:00
2024-06-03 16:38:15 +00:00