Skip to content

multissl: curl_global_cleanup doesn't restore Curl_ssl as its default (Curl_ssl_multi) #5255

Closed
@davidedec

Description

@davidedec

I noticed that after a curl_global_cleanup it's not possible to curl_global_sslset and curl_global_init again in order to change the ssl backend.

This can be achieved in vtls.c by setting back the Curl_ssl = &Curl_ssl_multi after the Curl_ssl_cleanup

The idea is to be able to change the backend in this sequence:

curl_global_sslset(CURLSSLBACKEND_SCHANNEL, NULL, NULL);
curl_global_init(CURL_GLOBAL_DEFAULT);
//....
curl_global_cleanup();

curl_global_sslset(CURLSSLBACKEND_OPENSSL, NULL, NULL);
curl_global_init(CURL_GLOBAL_DEFAULT);
//....
curl_global_cleanup();

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions