[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fun with certificate authentication

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2002-08-05 14:32:36 CEST

On Mon, 5 Aug 2002, Joe Orton wrote:

> Hi, thanks for looking in to this - I can respond to the rest later,

The first thing that occurred when i woke up this morning was that the PEM
reader can't use the default private key prompt because it doesn't take a
context argument. Duh. The fix should be right, the reasoning wrong.
That'll teach me to debug at 2am in the morning.
The PKCS12 loader explicitly calls the prompting function, and passes the
password to the parse call, which is why it gets it right.

> does this patch fix the crashes in SSL_free though?
>
Yup.

> Index: src/ne_session.c
> ===================================================================
> RCS file: /home/cvs/neon/src/ne_session.c,v
> retrieving revision 1.65
> diff -u -r1.65 ne_session.c
> --- src/ne_session.c 4 Aug 2002 18:11:15 -0000 1.65
> +++ src/ne_session.c 5 Aug 2002 08:36:45 -0000
> @@ -546,6 +546,8 @@
>
> if (sess->client_key && sess->client_cert) {
> NE_DEBUG(NE_DBG_HTTP, "Supplying client certificate.");
> + sess->client_cert->references++;
> + sess->client_key->references++;
> *cert = sess->client_cert;
> *pkey = sess->client_key;
> return 1;
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 5 14:33:53 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.