Re: ssl 2.0

Brian and Oleg,

Thanks for your patches and comments.

I just commited Brian's patches [1] to the libwww-ssl code. 

I didn't want to hardcode the change of the protocol method from TLSv1 to 
SSLv23 because what works in one application may not be what you'd like in 
another.  Rather, I extended the libwww-ssl API so that you can change (or 
retrieve) the method from your own application. I think this is one question
we always need to ask ourselves when contributing to libwww "is this a general
patch?".  And when it's not so, it's up to the poor guy who's committing it
to make sure it is :)

The new API is on HTSSL.[hc]

====
typedef enum _HTSSL_PROTOCOL {
	HTSSL_V2,
	HTSSL_V3,
	HTSSL_V23,
	HTTLS_V1
}
	HTSSL_protMethod_set (HTSSL_PROTOCOL protocol);
	HTSSL_PROTOCOL HTSSL_protMethod (void);
====

This sets up a protocol method variable in HTSSL.c. You should change its
value before invoking the HTSSL_init () function, in order to take the
change into account.

By default, if the protMethod_set function isn't called, HTTLS_V1 will be
used.

[1] http://lists.w3.org/Archives/Public/www-lib/2000JanMar/0018.html

-Jose

In our previous episode, RUniphone@aol.com said:
> 
> I tried 
> SSLv23_client_method() in HTSSL_init
> It workes.
> It is also possible to use 
> TLSv1_client_method()
> SSLv3_client_method()
> SSLv2_client_method()
> 
> SSLv2_client_method() allow to rettrieve data from the servers which only supports SSL 2.0

Received on Thursday, 15 June 2000 09:10:25 UTC