mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Unify error code for missing key description.
Use -ESRCH for similar error code as with crypt_activate_by_keyslot_context. Here it's not confliciting with previous use for the very code but let's make it easier and use same code for similar case.
This commit is contained in:
@@ -3120,7 +3120,7 @@ void crypt_safe_memzero(void *data, size_t size);
|
||||
* devices that are in re-encryption and have two volume keys at the same time
|
||||
* (old and new). You can set the @e old_key_description to NULL,
|
||||
* but if you supply number of keys less than required, the function will
|
||||
* return -EAGAIN. In that case you need to call the function again and set
|
||||
* return -ESRCH. In that case you need to call the function again and set
|
||||
* the missing key description. When supplying just one key description, make
|
||||
* sure to supply it in the @e key_description.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user