cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_SSLENGINE option

From: Gisle Vanem <giva_at_bgnett.no>
Date: Mon, 13 Dec 2004 14:12:58 +0100

Working on the "--engine ?" feature, I noted libcurl does not
call ENGINE_init() and ENGINE_finish() for the specified engine.
Is that an omission? Now this engine option seemingly works.
But in fact it does not use any crypto engine the user would expect.

Re. the "--engine ?" feature, I've coded it like (in src/main.c):

  if (config->list_engines) {
    const char **engines = NULL;

    curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
    list_engines(engines); /* print engines[] */
    res = CURLE_OK;
  ...

 CURLINFO_SSL_ENGINES = CURLINFO_STRING + 27,

Not sure if curl_easy_getinfo() should be allowed to take a 'char ***'
or if we should define a new bit CURLINFO_STRING_ARRAY.

--gv
Received on 2004-12-13