|
NAMEcurl_easy_ssls_export - export SSL sessions SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_ssls_import(CURL *handle, DESCRIPTIONThis function imports a previously exported SSL session ticket. sdata and sdata_len must always be provided. If session_key is NULL, then shmac and shmac_len must be given as received during the export. See curl_easy_ssls_export(3) for a description of those. Import of session tickets from other curl versions may fail due to changes in the handling of shmac or sdata. A session ticket which has already expired is silently discarded. PROTOCOLSThis functionality affects all TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc. This option works only with the following TLS backends: BearSSL, GnuTLS, OpenSSL, mbedTLS and wolfSSL EXAMPLEint main(void)
{
AVAILABILITYAdded in curl 8.12.0 RETURN VALUEThis function returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). If CURLOPT_ERRORBUFFER(3) was set with curl_easy_setopt(3) there can be an error message stored in the error buffer when non-zero is returned. SEE ALSOCURLOPT_SHARE(3), curl_easy_ssls_export(3), curl_share_setopt(3)
|