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 19:35:35 -0400

On Mon, Mar 23, 2020 at 6:42 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Mon, 23 Mar 2020, Jeffrey Walton wrote:
>
> > 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):
>
> Yes, but there are lots of things you can switch off in OpenSSL and we don't
> check for them all and I've never seen EGD switched off before... (if it even
> is the case here)
>
> We typically address these things one by one when someone faces problems like
> this.

Thanks again.

    # OpenSSL 1.0.2
    $ nm -g /usr/lib/libcrypto.so | grep RAND_egd
    00000000001086c3 T RAND_egd
    00000000001086a3 T RAND_egd_bytes

And:

    $ OpenSSL 1.1.1e
    $ nm -g $HOME/tmp/lib/libcrypto.so | grep RAND_egd
    $

So it looks like EGD is off by default in OpenSSL 1.1.1.

I prefer to avoid EGD in this case.

What do you suggest?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-03-24