Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2008 01:36:13 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Sam Leffler <sam@freebsd.org>
Cc:        fbsd2@yahoo.com, freebsd-stable@freebsd.org
Subject:   Re: busybox and small scripting languages on FreeBSD ? (was Re: 80 Mb /	enough for 7.x? OK to delete /stand/ and /modules/ ?)
Message-ID:  <20080802233613.GA85083@onelab2.iet.unipi.it>
In-Reply-To: <4894E8C3.5060004@freebsd.org>
References:  <372128.56919.qm@web51502.mail.re2.yahoo.com> <20080802.002039.58462077.imp@bsdimp.com> <4894A9D8.2090606@freebsd.org> <20080802225643.GA84798@onelab2.iet.unipi.it> <4894E8C3.5060004@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 02, 2008 at 04:07:47PM -0700, Sam Leffler wrote:
> Luigi Rizzo wrote:
...
> >Also, what would you suggest as a small scripting language to be used
> >in this kind of platform for implementing CGI scripts (and preferably
> >able to use sockets/select) ?
...
> Not sure about scripting languages but what's really needed is a 
> lightweight http solution that supports ssl.  This can go a long way 
> before you get to php et. al.  My last project of this sort used 
> tinyhttp (I think, whichever one Jeff Pozkanzer did) and php.  But we 
> didn't try to fit in flash, we used compact flash parts.  I think 
> tinyhttpd+php is also what m0n0wall and pfsense use but haven't looked 
> in a while.

I think this http/ssl problem is reasonably well addressed by
mini_httpd (this is Jeff Pozkanzer's code, about 50kb) and a small
SSL library which you find in ports/security/xyssl (300kb).

Mini_httpd uses the regular openssl libraries, but the xyssl API is
reasonably similar to the SSL_* calls in openssl so it should be
relatively straightforward to use in mini_httpd -- I did this in
another project, even though only on the client side of https
http://info.iet.unipi.it/~luigi/FreeBSD/minixmlrpc/
and it took very short time to adapt the code from openssl to xyssl.

	cheers
	luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080802233613.GA85083>