cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl and openssl-0.9.7-beta1

From: Götz Babin-Ebell <babinebell_at_trustcenter.de>
Date: Tue, 04 Jun 2002 12:38:39 +0200

Mike Castle wrote:

Hello Mike,

> FYI:

> It appears that openssl-0.9.7 will have the engine stuff by default.

>From 0.9.7. on the engine stuff is merged in the main development
branch...

> However, at least some of the API has changed, so compilation fails:
>
> i386-linux-gcc -DHAVE_CONFIG_H -I../../curl-7.9.7/include -I../lib -I../../curl-7.9.7/lib -g -O2 -c ../../curl-7.9.7/lib/ssluse.c -Wp,-MD,.deps/ssluse.TPlo -fPIC -DPIC -o .libs/ssluse.lo
> .../../curl-7.9.7/lib/ssluse.c: In function `cert_stuff':
> .../../curl-7.9.7/lib/ssluse.c:291: warning: passing arg 3 of `ENGINE_load_private_key' from incompatible pointer type
> .../../curl-7.9.7/lib/ssluse.c:291: too few arguments to function `ENGINE_load_private_key'
>
> The new API, for instance:
>
> /* API functions to load public/private keys */
>
> EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
> UI_METHOD *ui_method, void *callback_data)

The old API was:
EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
                                  const char *passphrase);

I hadn't the time for a look, (especially to the new UI-code...)
But if the change is like the change to the PEM_read_... -functions,
a change to
[...]
          priv_key =
ENGINE_load_private_key(conn->data->engine,key_file,
                                             NULL,data->set.key_passwd);
[...]
might work.

Could somebody give a try ?

Bye

Goetz

-- 
Goetz Babin-Ebell, TC TrustCenter AG, http://www.trustcenter.de
Sonninstr. 24-28, 20097 Hamburg, Germany
Tel.: +49-(0)40 80 80 26 -0,  Fax: +49-(0)40 80 80 26 -126

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

Received on 2002-06-04