Files
cryptsetup/lib
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-11-08 15:46:28 +01:00
2024-11-08 15:46:28 +01:00
2024-06-03 16:38:15 +00:00
2024-11-08 15:46:28 +01:00
2024-06-03 16:38:15 +00:00
2024-06-03 16:38:15 +00:00
2024-11-08 15:46:28 +01:00
2024-11-08 15:46:28 +01:00
2024-11-15 15:24:14 +01:00
2012-04-02 22:03:05 +02:00
2024-06-03 16:38:15 +00:00
2024-11-15 15:24:14 +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
2024-06-03 16:38:15 +00: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
2024-06-03 16:38:15 +00:00
2024-06-05 10:49:08 +02:00
2024-07-10 09:48:08 +02:00
2024-06-03 16:38:15 +00:00