cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: generic SSL layer spring cleanup [PATCH]

From: Dan Fandrich <dan_at_coneharvesters.com>
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 moved
Received on 2008-06-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET