mirror of https://github.com/openssl/openssl.git
argon2: Fixed an thread availability error string
Correctly display the number of requested threads and the number
of available threads.
CLA: trivial
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25375)
(cherry picked from commit 60725f8511)
This commit is contained in:
parent
142585706b
commit
538d36e657
|
|
@ -1071,8 +1071,8 @@ static int kdf_argon2_derive(void *vctx, unsigned char *out, size_t outlen,
|
|||
# else
|
||||
if (ctx->threads > ossl_get_avail_threads(ctx->libctx)) {
|
||||
ERR_raise_data(ERR_LIB_PROV, PROV_R_INVALID_THREAD_POOL_SIZE,
|
||||
"requested %u threads, available: 1",
|
||||
ossl_get_avail_threads(ctx->libctx));
|
||||
"requested %u threads, available: %u",
|
||||
ctx->threads, ossl_get_avail_threads(ctx->libctx));
|
||||
return 0;
|
||||
}
|
||||
# endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue