Hi Karl,
> ifstream in("/usr/local/ssl/certs/cert.result");
> cout<<"Content-Type: application/x-x509-user-cert\n" << endl;
> while(in){
> in.getline(str,255);
> result +=str;
> result +='\n';
> }
> in.close();
> len = strlen(result.c_str());
> cout<<"Content-Length:" << len << "\n\n" <<endl;
^^^^^^^^^^^
I'm not sure but doesn't this output tree newlines?
Two should be enough, thus either
cout<<"Content-Length:" << len << "\n\n";
or
cout<<"Content-Length:" << len << endl << endl;
> // send the client certificate to the browser
> cout<<result.c_str() <<endl;
Robert
--------------------------------------------------
Robert Eiglmaier ([EMAIL PROTECTED])
IXOS Software AG
Product Development 1
Tel +49 89 4629 1526
Fax +49 89 4629 331526
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]