GNURLOPT_SSLENGINE(3)
π GNURLOPT_SSLENGINE(3) π
okay bestie, welcome to the curl_easy_setopt options manual β this page is serving SSL engine identifier realness, and itβs lowkey iconic. no cap, letβs get into it π«Ά
β¨ NAME β¨
CURLOPT_SSLENGINE β set SSL engine identifier
πΈ SYNOPSIS πΈ
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSLENGINE, char *id);
π¦ DESCRIPTION π¦
okay so you pass a pointer to a null-terminated string as the parameter. that string is literally the identifier for the crypto engine you want to use for your private key. slay π
the application does not have to keep the string around after setting this option. periodt π
π DEFAULT π
NULL
π PROTOCOLS π
all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. the whole TLS friend group showed up β¨
π EXAMPLE π
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_SSLENGINE, "dynamic");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π AVAILABILITY π
only if the SSL backend is OpenSSL built with engine support. thatβs the vibe check, bestie π§
π₯ RETURN VALUE π₯
CURLE_OKβ Engine found.CURLE_SSL_ENGINE_NOTFOUNDβ Engine not found, or OpenSSL was not built with engine support.CURLE_SSL_ENGINE_INITFAILEDβ Engine found but initialization failed.CURLE_NOT_BUILT_INβ Option not built in, OpenSSL is not the SSL backend.CURLE_UNKNOWN_OPTIONβ Option not recognized.CURLE_OUT_OF_MEMORYβ Insufficient heap space.
likeβ¦ read the return value, itβs literally telling you what happened π
π«Ά SEE ALSO π«Ά
later bestie π this page was from libcurl 7.37.0, dated 17 Jun 2014, and itβs the GNURLOPT_SSLENGINE(3) page β mwah, slay, bye β¨π
π
π¦ 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