Re: trouble configuring libwww with openssl

Hurrms, a prior post concerning the Robot webbot never made it to the 
archives.  Here it is (again)?

Tony Alexander wrote:

> has anyone out there encountered this problem?  and, if so, how did 
> you rectify it?


In the interest of generating a diff of the previously mentioned 
changes, I checked out the head of libwww from cvs and everything 
proceeded without fail . . .

   cvs -d :pserver:anonymous@dev.w3.org:/sources/public login
   cvs -d :pserver:anonymous@dev.w3.org:/sources/public -z3 checkout libwww
   cd libwww/
   perl config/winConfigure.pl
   aclocal; autoheader; automake; autoconf
   ./configure --with-ssl
   make
   make install

The webbot was no better off with respect to handling https protocol, 
however the wwwssl "Examples" program seems to have not a problem, e.g.,

   ./wwwssl https://sourceforge.net/ -o sf.html

Inspection of the code suggests that the Robot webbot is missing three 
calls,

   Index: Robot/src/RobotMain.c
   ===================================================================
   RCS file: /sources/public/libwww/Robot/src/RobotMain.c,v
   retrieving revision 1.11
   diff -r1.11 RobotMain.c
   27a28
    > #include "HTSSL.h"
   83a85,97
    >     /* Set the SSL protocol method. By default, it is the highest
    >        available protocol. Setting it up to SSL_V23 allows the client
    >        to negotiate with the server and set up either TSLv1, SSLv3,
    >        or SSLv2 */
    >     HTSSL_protMethod_set (HTSSL_V23);
    >
    >     /* Set the certificate verification depth to 2 in order to be
   able to
    >        validate self signed certificates */
    >     HTSSL_verifyDepth_set (2);
    >
    >     /* Register SSL stuff for handling ssl access */
    >     HTSSLhttps_init(YES);
    >

In order to get the Makefile happy, the following change is also required,

   Index: Makefile.am
   ===================================================================
   RCS file: /sources/public/libwww/Robot/src/Makefile.am,v
   retrieving revision 1.30
   diff -r1.30 Makefile.am
   22a23
    >         $(top_builddir)/Library/src/SSL/libwwwssl.la \
   28a30
    >       -I$(srcdir)/../../Library/src/SSL \



more,
l8r,
v

-- 

$ cat /etc/redhat-release Fedora Core release 2 (Tettnang)
$ rpm -qa | egrep "((auto|gcc|ssl))"
automake15-1.5-10
gcc-gnat-3.3.3-7
autorun-3.13-1
libgcc-3.3.3-7
compat-gcc-7.3-2.96.126
automake17-1.7.9-2
gcc-c++-3.3.3-7
gcc-java-3.3.3-7
openssl-devel-0.9.7a-35
compat-gcc-c++-7.3-2.96.126
autofs-4.1.2-2
automake14-1.4p6-9
autoconf-2.59-3
automake16-1.6.3-2
gcc-3.3.3-7
gcc34-3.4.0-1
docbook-style-dsssl-1.78-3
openssl-0.9.7a-35
automake-1.8.3-1
gcc-g77-3.3.3-7
gcc34-java-3.4.0-1
mod_ssl-2.0.51-2.9

Received on Friday, 10 December 2004 11:28:45 UTC