W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

SSL POSTs on Solaris, not working for me

From: Donald Tillman <till@sigaba.com>
Date: Sun, 16 Mar 2003 19:34:27 -0800
Message-id: <2129B7848043D411881A00B0D0627EFE012E35F1@exchange.sigaba.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Cc: Donald Tillman <till@sigaba.com>

Hi.

My goal is a C program running on Solaris 5.8 that performs SSL 
POSTs to a server.

I have been able to get it working pretty well on a Linux 
platform after dealing with a couple of issues:
  The fix to HTSSLWriter.write() for long posts
  Tweaking HTCookies for https.
  

But the same code doesn't work at all on Solaris.  Specifically, 
I'm calling HTPostFormAnchorToChunk(), 
  this calls HTSSL_Writer_write(),
  this calls HTSSL_write(), 
  this calls SSL_write(), 
  this calls back to veryify_callback() to check the certificate, 
  that returns a 1, 
  then HTSSL_write() returns a -1 error code, 
  and HTSSL_getError() returns a 1,
  and HTSSLWriter_write() closes things down.

So the SSL stream checks the certificate and dies without 
explanation.

I am using the --disable-shared option to configure.
I'm initializing SSL with the code from the SSL example.
This happens with either HTSSLhttps_init(YES) or HTSSLhttps_init(NO).
OpenSSL passes the 'make test' test fine.

I haven't been able to debug the SSL stream because the PATH part 
of configure's with-ssl=PATH doesn't allow me to substitute in
my own build of OpenSSL.

Versions are:
  w3c-libwww-5.4.0
  openssl-0.9.7
  SunOS 5.8

Is there a magic incantation that I need to know?

  -- Don
 
----------------
J. Donald Tillman
Principal Member of the Technical Staff
Sigaba
650 572-6107
till@sigaba.com <mailto:till@sigaba.com> 
 
Received on Sunday, 16 March 2003 22:34:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT