curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: error: implicit declaration of function 'RAND_egd'

From: Jeffrey Walton via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 23 Mar 2020 18:31:36 -0400

On Mon, Mar 23, 2020 at 6:01 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Mon, 23 Mar 2020, Jeffrey Walton via curl-library wrote:
>
> > Any ideas?
>
> Your OpenSSL was probably built with EGD disabled? The openssl/rand.h header
> has this (in both 1.1.1e as well as current git master):
>
> # ifndef OPENSSL_NO_EGD
> int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
> int RAND_egd(const char *path);
> int RAND_egd_bytes(const char *path, int bytes);
> # endif

Thanks.

I don't do anything special with EGD. I don't know what state it is in
in OpenSSL 1.1.1d. (I recall talk of OpenSSL removing it).

If that is the case, wouldn't this check detect lack of EGD
(https://github.com/curl/curl/blob/master/configure.ac#L1839):

    AC_CHECK_FUNCS( RAND_egd \
      SSLv2_client_method \
      OpenSSL_version )

I'm trying to figure out if tests are being performed against OpenSSL
1.0.2 instead of OpenSSL 1.1.1e.

Thanks.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-03-23