GNURLINFO_SSL_ENGINES(3)

πŸ“¦ version 7.72.0, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME

okay bestie, welcome to GNURLINFO_SSL_ENGINES(3), from the curl_easy_getinfo options manual. This one is all about CURLINFO_SSL_ENGINES β€” get an slist of OpenSSL crypto-engines. Slay. πŸ’…


✨ SYNOPSIS ✨

#include <gnurl/curl.h>

CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SSL_ENGINES,
                           struct curl_slist **engine_list);

πŸ’– DESCRIPTION πŸ’–

Okay so you pass the address of a struct curl_slist * to receive a linked-list of OpenSSL crypto-engines supported. Note that engines are normally implemented in separate dynamic libraries. Hence not all the returned engines may be available at run-time.

🚨 NOTE: you must call curl_slist_free_all(3) on the list pointer once you're done with it, as libcurl will not free the data for you. No cap, bestie β€” that cleanup is your job.

🌈 PROTOCOLS 🌈

All TLS based ones. Periodt. πŸ¦‹


🧚 EXAMPLE 🧚

CURL *curl = curl_easy_init();
if(curl) {
  CURLcode res;
  struct curl_slist *engines;
  res = curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
  if((res == CURLE_OK) && engines) {
    /* we have a list, free it when done using it */
    curl_slist_free_all(engines);
  }

  curl_easy_cleanup(curl);
}

🌸 AVAILABILITY 🌸

Added in 7.12.3. Available in OpenSSL builds with "engine" support.


πŸ‘‘ RETURN VALUE πŸ‘‘

Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. That's the whole vibe check. ✨


🫢 SEE ALSO 🫢


xoxo, bestie β€” this iconic page is libcurl 7.44.0, dated 1 Sep 2015, and its footer title is GNURLINFO_SSL_ENGINES(3) πŸ’…βœ¨

πŸ“¦ where this page comes from