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: How to pass additional flags to OPENSSL_init_ssl?

From: 豪殷 via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 8 Apr 2022 19:00:48 +0800

>
> Greeting,
>
> We use curl 7.80.0 with openssl 3.0.2 in our environment, I wonder what
is the proper way to pass additional flags from global_init to
OPENSSL_init_ssl?
>
> Seems like some flags will be added in compile-time in ossl_init
function, but run time addition of flags is currently not supported.
>
> Is there any other way to bypass this, or maybe a PR is needed?

> Just curious.. which flags do you need to pass ? most of the time you
> can use openssl.cnf to deviate system-wide from the defaults..

Actually I am investigate an Openssl crash issue, I think it might be
related to the atexit hook, so I want to pass OPENSSL_INIT_NO_ATEXIT
to OPENSSL_init_crypto to see if the crash issue will disappear.

Currently I am not sure if this flag is available to set in openssl.cnf,
I'll try it later, Thanks.


-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-04-08