>I set up my own CA and sign client certificates.
>I can use the program of perl provided by F.J Hirsch
>in his paper" Introducing SSL and Certificates using
>SSLeay" to download certificate to netscape browser.
>But I can not use my C program to do the work.
[...]
>And this is my C program:
>ifstream in("/usr/local/ssl/certs/cert.result");
>cout<<"Content-Type: application/x-x509-user-cert\n" << endl;
^^ ^^
here you have two new lines, which terminate the header, so
Content-Length will be read as part of the body.
Remove the \n, endl does all you want here.
Jochen
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]