curl-library
Re: generic SSL layer spring cleanup [PATCH]
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 10 Jun 2008 16:22:52 -0700
Date: Tue, 10 Jun 2008 16:22:52 -0700
On Wed, Jun 11, 2008 at 01:07:39AM +0200, Daniel Stenberg wrote:
> It is my initial take at cleaning up the generic SSL layer in libcurl,
> sslgen.[ch]. With this change, the sslgen.c file shrunk from 760 lines to
> 460, and the number of ^#if lines went from 66 to 3. Hopefully this will
> also make it easier to write support for other SSL libraries in the future
> since now sslgen.[ch] could work pretty much unmodified even with new
> libs.
It's hard to argue against that kind of result! It's much, much more
clear to read this way, and the curlssl_* macros form an effective SSL
API that should make it easier for people to port new TLS libraries.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-06-11