No special interface. You set up curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf); and connect directly. If SSL is not supported. The error CURLE_SSL_CONNECT_ERROR will be returned, and the error cause will be in the error buffer. The main thing is this, whether to use SSL is determined by the protocol of the URL, whether there is https or not. Because SSL can be set on different ports, this is also URL specified. So it all depends on how the URL is written. Curl just connects based on the URL.
No special interface. You set up curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf); and connect directly. If SSL is not supported. The error CURLE_SSL_CONNECT_ERROR will be returned, and the error cause will be in the error buffer.
The main thing is this, whether to use SSL is determined by the protocol of the URL, whether there is https or not. Because SSL can be set on different ports, this is also URL specified. So it all depends on how the URL is written. Curl just connects based on the URL.
Check the API of libcurl and it should be there.