rand/rand_unix.c: bypass DSO_global_lookup on ELF systems.
authorAndy Polyakov <appro@openssl.org>
Fri, 8 Jun 2018 09:38:22 +0000 (11:38 +0200)
committerAndy Polyakov <appro@openssl.org>
Sat, 9 Jun 2018 12:45:05 +0000 (14:45 +0200)
commit913cebc8f44d50479704040c77d9ed20eea839bc
tree09d07069cb16a7e58ffa76e153254178bb610511
parent46ceca3c91cc7b8e8f522009e7338a9a96952e6e
rand/rand_unix.c: bypass DSO_global_lookup on ELF systems.

If built with no-dso, syscall_random remains "blind" to getentropy.
Since it's possible to detect symbol availability on ELF-based systems
without involving DSO module, bypass it.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6436)
crypto/rand/rand_unix.c