From owner-freebsd-stable@FreeBSD.ORG Sat Aug 2 23:34:09 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24A3A1065672; Sat, 2 Aug 2008 23:34:09 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id D150A8FC08; Sat, 2 Aug 2008 23:34:08 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 532517308B; Sun, 3 Aug 2008 01:36:13 +0200 (CEST) Date: Sun, 3 Aug 2008 01:36:13 +0200 From: Luigi Rizzo To: Sam Leffler Message-ID: <20080802233613.GA85083@onelab2.iet.unipi.it> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4894E8C3.5060004@freebsd.org> User-Agent: Mutt/1.4.2.3i 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/ ?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 23:34:09 -0000 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