am 0417060e
: Use correct error code for rate limiting.
* commit '0417060e8ebfd28171fd0aaef8f4e42d9ddd482e': Use correct error code for rate limiting.
This commit is contained in:
commit
c6c5932cf8
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ static int keymaster_sign_object(struct crypt_mnt_ftr *ftr,
|
|||
keymaster_error_t error = keymaster1_dev->begin(keymaster1_dev, KM_PURPOSE_SIGN, &key,
|
||||
¶m_set, NULL /* out_params */,
|
||||
&op_handle);
|
||||
if (error == KM_ERROR_VERIFICATION_FAILED) {
|
||||
if (error == KM_ERROR_KEY_RATE_LIMIT_EXCEEDED) {
|
||||
// Key usage has been rate-limited. Wait a bit and try again.
|
||||
sleep(KEYMASTER_CRYPTFS_RATE_LIMIT);
|
||||
error = keymaster1_dev->begin(keymaster1_dev, KM_PURPOSE_SIGN, &key,
|
||||
|
|
Loading…
Reference in a new issue