cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how small can i make the curl executable to support ftps://?

From: Robert P. J. Day <rpjday_at_mindspring.com>
Date: Tue, 9 Aug 2005 17:44:11 -0400 (EDT)

On Tue, 9 Aug 2005, Dan Fandrich wrote:

> On Tue, Aug 09, 2005 at 12:34:32PM -0400, Robert P. J. Day wrote:
> > i've managed to cross-compile curl for the PPC, disabling darned
> > near everything since all i need is support for ftps, and i
> > statically linked all of the libraries that weren't already on my
> > embedded system. you can see the few libs that are still being
> > linked dynamically here:
> >
> > $ ppc_8xx-ldd curl
> > libc.so.6 => /usr/local/eldk3.1.1/ppc_8xx/lib/libc.so.6
> > libdl.so.2 => /usr/local/eldk3.1.1/ppc_8xx/lib/libdl.so.2
> > ld.so.1 => /usr/local/eldk3.1.1/ppc_8xx/lib/ld.so.1
> >
> > the resulting PPC executable is still a whopping big 1.3M so i'm
> > wondering how few libs i need to link to get ftps support. just
> > how small can i make this thing? thanks.
>
> I just built a x86 curl executable supporting ftp only in 123 KiB.
> An OpenSSL enabled version is 850 KiB, so it's likely that the
> majority of your bloated executable is also a result of OpenSSL.

that sounds pretty much like what i'm seeing.

> Your best bests are probably to compile yourself a custom version of
> the OpenSSL libraries with only the features you require, or try
> using GnuTLS instead of OpenSSL.

what i probably need to do is take a step back and read up on the
underlying SSL and TLS protocols so i'm not stumbling around,
sometimes trying things at random without really knowing what i'm
doing. i'm open to a pointer or two on a good tutorial on SSL/TLS.

rday
Received on 2005-08-09