GNURLINFO_SSL_ENGINES(3)
π 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
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms