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

Reply via email to