1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Initial 1.0.0

git-svn-id: svn://svn.code.sf.net/p/axtls/code/axTLS@2 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2006-07-01 00:39:15 +00:00
commit fa18d60b98
183 changed files with 48114 additions and 0 deletions

141
httpd/Config.in Normal file
View File

@ -0,0 +1,141 @@
#
# For a description of the syntax of this configuration file,
# see scripts/config/Kconfig-language.txt
#
menu "Awhttpd Configuration"
depends on CONFIG_AWHTTPD
config CONFIG_HTTP_STATIC_BUILD
bool "Static Build"
default n
help
Select y if you want awhttp to be a static build (i.e. don't use the
axtls shared library or dll).
config CONFIG_HTTP_HAS_SSL
bool "Use SSL"
default y
help
Build the HTTP server with SSL capability
config CONFIG_HTTP_HTTPS_PORT
int "HTTPS port"
default 443
depends on CONFIG_HTTP_HAS_SSL
help
The port number of the HTTPS server.
You must be a root user in order to use the default port.
config CONFIG_STANDARD_AWHTTPD
bool "Use Standard AWHTTPD Configuration"
default n
help
Use the configuration file that awhttpd normally uses.
config CONFIG_HTTP_WEBROOT
string "Web root location"
default "www"
depends on !CONFIG_STANDARD_AWHTTPD
help
The location of the web root. This is the directory where
index.html lives.
config CONFIG_HTTP_PORT
int "HTTP port"
default 80
depends on !CONFIG_STANDARD_AWHTTPD
help
The port number of the normal HTTP server.
You must be a root user in order to use the default port.
config CONFIG_HTTP_USE_TIMEOUT
bool "Use Timeout"
default n
depends on !CONFIG_STANDARD_AWHTTPD
help
Enable timeouts to be used.
config CONFIG_HTTP_TIMEOUT
int "Timeout"
default 5
depends on CONFIG_HTTP_USE_TIMEOUT
help
Set the timeout in seconds.
config CONFIG_HTTP_INITIAL_SLOTS
int "Initial Slots"
default 10
depends on !CONFIG_STANDARD_AWHTTPD
help
Determine the number of slots.
This is just an initial value to allocate memory. This will go all the
way up to max usrs.
config CONFIG_HTTP_MAX_USERS
int "Max Users"
default 100
depends on !CONFIG_STANDARD_AWHTTPD
help
Determine the maximum number of simultaneous users at any time
config CONFIG_HTTP_HAS_CGI
bool "Enable CGI"
default n
depends on !CONFIG_STANDARD_AWHTTPD
help
Enable the CGI capability.
config CONFIG_HTTP_CGI_EXTENSION
string "CGI File Extension"
default ".php"
depends on CONFIG_HTTP_HAS_CGI
help
Tell awhhtp what file extension is used for CGI
config CONFIG_HTTP_DIRECTORIES
bool "Enable Directory Listing"
default n
depends on !CONFIG_STANDARD_AWHTTPD
help
Enable directory listing.
config CONFIG_HTTP_PERM_CHECK
bool "Permissions Check"
default n
depends on !CONFIG_STANDARD_AWHTTPD
help
Enable permissions checking on the directories before reading the
files in them.
config CONFIG_HTTP_HAS_IPV6
bool "Enable IPv6"
default n
depends on !CONFIG_STANDARD_AWHTTPD && !CONFIG_PLATFORM_WIN32
help
Use IPv6 instead of IPv4.
Does not work under Win32
config CONFIG_HTTP_VERBOSE
bool "Verbose Mode"
default y if CONFIG_SSL_FULL_MODE
default n if !CONFIG_SSL_FULL_MODE
depends on !CONFIG_STANDARD_AWHTTPD
help
Enable extra statements used when using awhttpd.
config CONFIG_HTTP_IS_DAEMON
bool "Run as a daemon"
default n
depends on !CONFIG_STANDARD_AWHTTPD && !CONFIG_PLATFORM_WIN32
help
Run awhttpd as a background process.
Does not work under Win32
endmenu

111
httpd/Makefile Normal file
View File

@ -0,0 +1,111 @@
#
# Copyright(C) 2006
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
all : web_server
include ../config/.config
include ../config/makefile.conf
ifndef CONFIG_PLATFORM_WIN32
ifdef CONFIG_PLATFORM_CYGWIN
TARGET=../awhttpd.exe
else
TARGET=../awhttpd
endif
ifdef CONFIG_HTTP_STATIC_BUILD
LIBS=../libaxtls.a
else
LIBS=-L../ -laxtls
endif
CFLAGS += -I../ssl
else # win32 build
TARGET=../awhttpd.exe
ifdef CONFIG_HTTP_STATIC_BUILD
LIBS=../axtls.static.lib ..\config\axtls.res
else
LIBS=../axtls.lib ..\config\axtls.res
endif
endif
ifndef CONFIG_AWHTTPD
web_server:
else
untar_web_server: awhttpd/Makefile
awhttpd/Makefile:
tar xvf awhttpd-3.0.7.tar
cat awhttpd.patch | patch -p0
web_server : $(TARGET)
OBJ= \
cgi.o \
conn.o \
main.o \
net.o \
proc.o \
socket.o \
errors.o \
misc.o \
urldecode.o \
mime_types.o \
index.o \
urlencode.o \
permcheck.o \
conf.o
%.o : awhttpd/%.c ../config/.config
$(CC) -c $(CFLAGS) $<
ifndef CONFIG_PLATFORM_WIN32
$(TARGET): $(OBJ)
ifdef CONFIG_HTTP_NO_SSL
$(LD) $(LDFLAGS) -o $@ $(OBJ)
endif
$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
ifndef CONFIG_DEBUG
ifndef CONFIG_PLATFORM_SOLARIS
strip --remove-section=.comment $(TARGET)
endif
endif
else # Win32
OBJ:=$(OBJ:.o=.obj)
%.obj : awhttpd/%.c
$(CC) $(CFLAGS) $<
$(TARGET): $(OBJ)
ifdef CONFIG_HTTP_NO_SSL
$(LD) $(LDFLAGS) /out:$@ $(OBJ)
endif
$(LD) $(LDFLAGS) $(LIBS) /out:$@ $(OBJ)
endif
endif # CONFIG_AWHTTPD
clean::
-@rm -f $(TARGET)*
-@rm -fr awhttpd

BIN
httpd/awhttpd-3.0.7.tar Normal file

Binary file not shown.

1768
httpd/awhttpd.patch Normal file

File diff suppressed because it is too large Load Diff