[EMAIL PROTECTED] skrev:
Send neon mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.webdav.org/mailman/listinfo/neon
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of neon digest..."
Today's Topics:
1. Neon bug? (Toni Thomsson)
----------------------------------------------------------------------
Message: 1
Date: Thu, 01 Feb 2007 23:17:56 +0100
From: Toni Thomsson <[EMAIL PROTECTED]>
Subject: [neon] Neon bug?
To: [email protected]
Cc: "jan.clareus" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
I've used Neon in some of my projects and I'm quite happy with it, great
library!
However I think I bumped in to a bug when I tried to use SSL with a
client cerificate.
I try to read the clientcert so that I can add it to the session but it
always fails, or
rather the process gets interupted and exits. Looks like "someone" is
calling exit(1);
Simple testprogram:
#include <stdio.h>
#include <config.h>
#include <ne_ssl.h>
#include <ne_session.h>
#include <ne_request.h>
#include <ne_basic.h>
#include <ne_uri.h>
#include <ne_socket.h>
#include <ne_utils.h>
int main( int argc, char** argv )
{
ne_ssl_client_cert *ccert;
printf("before\n");
ccert = ne_ssl_clicert_read( "client.p12" );
/* You never get here! */
printf("after\n");
if( ccert != NULL )
printf("ok\n");
else
printf("not ok\n");
}
I'm working on windows XP-SP2 using Neon 0.26.3 and openSSL 0.9.8d.
Please drop me a line if you have any ideas!
Best regards
Toni Thomsson
PS. I know the the clientcert is OK, it works in other environments like
Firefox and Internet Explorer.
------------------------------
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon
End of neon Digest, Vol 45, Issue 1
***********************************
Solved my problem. After debugging neon from my test i found
that it was d2i_PKCS12_fp() that made an forced exit(). After
some googleing I found:
http://www.openssl.org/support/faq.html#PROG2
And my problem was solved by adding applink.c from openSSL in
my program, wacky...
/Toni
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon