]> git.ipfire.org Git - thirdparty/openssl.git/commit
rand_lib.c: Use ERR_LIB_RAND with RAND_R errors
authorTeshan Kannangara <90088670+TeshanK@users.noreply.github.com>
Sat, 8 Nov 2025 14:13:09 +0000 (19:43 +0530)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Nov 2025 13:15:07 +0000 (14:15 +0100)
commite7251fa1a92bcb1fda1dad7f7e2e3ed2c0056e27
tree7e12f49966b664cabff998003e087e2d426dbe22
parent3f0fb590957763a494163ff64b24975e6c9b437b
rand_lib.c: Use ERR_LIB_RAND with RAND_R errors

Use ERR_LIB_RAND when reporting RAND_R_ALREADY_INSTANTIATED from
RAND_set_DRBG_type() and RAND_set_seed_source_type() so the error
message references the RAND subsystem instead of CRYPTO.

Fixes #29039

CLA: trivial

Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29109)
crypto/rand/rand_lib.c