[En-Nut-Discussion] Processing Input from Unprotected Files

Harald Kipp harald.kipp at egnite.de
Wed Oct 11 13:18:34 CEST 2006


Jason,

I'd suggest to copy pro/auth.c to your application's directory
and modify the routines accordingly. Do not forget to add it
to your GCC Makefile

   SRCS =  $(PROJ).c $(WEBFILE) auth.c

or ICC project. This way your modified files will replace the
standard routines. It's not that clean, but most flexibel.

AFAIK, NutHttpAuthValidate() is called on every file request
and on CGIs.

Harald

At 16:54 10.10.2006 -0400, you wrote:
>I've modified the "index.html" file in the urom for the "httpd" project to
>simply contain a user name and password box with submit button.  I'd rather
>pass these parameters into the firmware and have them verified before
>allowing any further pages to be viewed (including, but not limited to cgi
>forms).





More information about the En-Nut-Discussion mailing list