summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] check ifdef WOLFSSL_SHA512 for SHA512 availGlenn Strauss2021-01-161-0/+2
|
* [core] add decls in connections.hGlenn Strauss2021-01-131-3/+5
|
* [mod_access] mark mod_access_check attribute pureGlenn Strauss2021-01-131-5/+5
|
* [mod_dirlisting] hide unused variable on MacOSGlenn Strauss2021-01-121-0/+2
| | | | (quiet compiler warning)
* [mod_deflate] use zstd streaming APIGlenn Strauss2021-01-121-41/+39
|
* [mod_deflate] support Accept-Encoding: zstdGlenn Strauss2021-01-126-8/+161
|
* [mod_dirlisting] use fdopendir(), fstatat()Glenn Strauss2021-01-111-15/+50
| | | | use fdopendir(), fstatat(), if available
* [mod_openssl] set Ciphersuites once API availableGlenn Strauss2021-01-111-3/+11
| | | | | | | | | set Ciphersuites once API is available (SSL_CTX_set_ciphersuites()) in LibreSSL. x-ref: "Add support for TLS 1.3" https://github.com/libressl-portable/portable/issues/228
* [multiple] fix: honor CipherString for alt TLS libGlenn Strauss2021-01-112-2/+2
| | | | | fix typo: honor user-defined CipherString for alternative TLS libraries (LibreSSL, BoringSSL, wolfSSL)
* [mod_openssl] update LIBRESSL_VERSION_NUMBER checkGlenn Strauss2021-01-111-4/+7
|
* [core] fix crash in error trace if backend is down (fixes #3052)Glenn Strauss2021-01-081-5/+9
| | | | | | | | (thx hamelg) x-ref: "segfault with mod_scgi on backend server with unix socket domain" https://redmine.lighttpd.net/issues/3052
* [mod_dirlisting] quiet coverity false positiveGlenn Strauss2021-01-071-0/+6
|
* [multiple] replace buffer_is_equal_caseless_stringGlenn Strauss2021-01-074-13/+3
| | | | buffer_is_equal_caseless_string() -> buffer_eq_icase_slen()
* [multiple] use HTTP_HEADER_* enum before strcmpGlenn Strauss2021-01-073-44/+34
| | | | When known, use HTTP_HEADER_* enum before string comparisons
* [mod_extforward] fix extforward.headers defaults (fixes #3051)Glenn Strauss2021-01-071-0/+4
| | | | | | | | | | | | | | (thx glen) Regression in lighttpd 1.4.56 - 1.4.58 when extforward.headers is not set in lighttpd.conf. Workaround: extforward.headers = ("X-Forwarded-For") (or appropriate value depending on header sent by upstream proxy) x-ref: "mod_extforward regression 1.4.56" https://redmine.lighttpd.net/issues/3051
* [mod_extforward] config warning for module orderGlenn Strauss2021-01-061-0/+1
| | | | expand config warning for module load order to include other TLS modules
* [mod_openssl] extend ssl.openssl.ssl-conf-cmdGlenn Strauss2021-01-051-0/+9
| | | | | | extend ssl.openssl.ssl-conf-cmd to accept "SecurityLevel" (lighttpd extension) and use the (string) value to call the openssl-specific SSL_CTX_set_security_level()
* [mod_wolfssl] minor updates for wolfSSL v4.6.0Glenn Strauss2021-01-051-10/+64
|
* [core] fix crash at shutdown w/ certain configGlenn Strauss2021-01-011-0/+2
| | | | | | If server.systemd-socket-activation = "enable" and one or more of the sockets is not listed in lighttpd.conf, then when the server is shutting down, a buffer from the config file is free()d twice.
* [mod_dirlisting] place vars closer to where usedGlenn Strauss2020-12-301-60/+41
| | | | allocate memory for PATH_MAX to avoid pathconf() for _PC_NAME_MAX
* [mod_gnutls] use local strncmp_const()Glenn Strauss2020-12-281-10/+11
| | | | | | On some older gcc, strncmp is a macro and expects three arguments, but does not see expansion of lighttpd CONST_STR_LEN() macro before warning/error about incorrect number of arguments
* [mod_mbedtls] use local strncmp_const()Glenn Strauss2020-12-281-9/+10
| | | | | | On some older gcc, strncmp is a macro and expects three arguments, but does not see expansion of lighttpd CONST_STR_LEN() macro before warning/error about incorrect number of arguments
* [mod_mbedtls] include mbedtls/platform_util.hGlenn Strauss2020-12-281-0/+1
| | | | | | | include mbedtls/platform_util.h for mbedtls_platform_zeroize() (instead of relying on an indirect include) (fixes build with (very old) mbedtls-2.14.0)
* [mod_webdav] hide unused funcs depending on buildGlenn Strauss2020-12-271-1/+3
| | | | hide unused funcs depending on build flags
* [core] fix bug in read retry found by coverityGlenn Strauss2020-12-271-9/+10
| | | | | | read retry loop needs separate var for result and data size to read rename 'toSend' variable to 'len' (of chunk)
* [multiple] chunkqueue_write_chunk()Glenn Strauss2020-12-274-272/+208
| | | | | | | | | | | | create API in chunk.[ch] for writing a chunk to an fd (pull similar code from mod_cgi and mod_webdav) This new API is intended for use on request body input, which is written to size-limited temporary files controlled by lighttpd and written to files or pipes. (network_backend_write() is for writing chunkqueues to sockets)
* [mod_webdav] typedef off_t loff_t for FreeBSDGlenn Strauss2020-12-271-0/+3
| | | | | | | | FreeBSD provides an API similar to Linux copy_file_range() but uses off_t instead of loff_t in the syscall. off_t is equivalent to off64_t when lighttpd is built with LFS (and lighttpd is built with LFS enabled by default)
* [core] http_response_match_if_range()Glenn Strauss2020-12-261-38/+14
| | | | separate func to check "If-Range"
* [core] fix bug in FastCGI uploads (#3033)Glenn Strauss2020-12-261-4/+5
| | | | | | | | (thx zoon01 and ms49434) x-ref: "Memory Growth with PUT and full buffered streams" https://redmine.lighttpd.net/issues/3033
* [core] fix crash after specific err in config fileGlenn Strauss2020-12-251-2/+3
|
* [multiple] etag.[ch] -> http_etag.[ch]; better impGlenn Strauss2020-12-2516-242/+142
| | | | | | more efficient implementation of HTTP ETag generation and comparison modify dekhash() to take hash value to allow for incremental hashing
* [core] inet_ntop_cache -> sock_addr_cacheGlenn Strauss2020-12-249-92/+87
| | | | | * rename inet_ntop_cache.[ch] to sock_addr_cache.[ch] * reimplement as separate caches for IPv4 and IPv6
* buffer_append_path_len() to join pathsGlenn Strauss2020-12-2414-48/+43
| | | | use buffer_append_path_len() to join path segments
* [core] http_date_timegm() (portable timegm())Glenn Strauss2020-12-243-39/+30
| | | | move from mod_openssl.c
* [multiple] employ http_date.h, sys-time.hGlenn Strauss2020-12-2416-206/+125
| | | | | - replace use of strptime() w/ implementation specialized for HTTP dates - use thread-safe gmtime_r(), localtime_r() (replace localtime, gmtime)
* [core] specialized strptime() for HTTP date fmtsGlenn Strauss2020-12-241-21/+219
|
* [core] http_date.[ch] encapsulate HTTP-date parseGlenn Strauss2020-12-247-1/+157
| | | | | | http_date.[ch] encapsulate HTTP-date parse/compare (import from one of my development branches from 2015)
* [core] sys-time.h - localtime_r,gmtime_r macrosGlenn Strauss2020-12-242-1/+34
| | | | | | | | | | sys-time.h - localtime_r,gmtime_r macros if needed provide rudimentary localtime_r() and gmtime_r() if not present (wraps localtime() and gmtime() funtions, but are not thread-safe since they do not take a lock around access to localtime() and gmtime()) (import from one of my development branches from 2015)
* [multiple] fdevent_waitpid() wrapperGlenn Strauss2020-12-248-25/+31
|
* [mod_proxy] fix sending of initial reqbody chunkedGlenn Strauss2020-12-241-1/+4
| | | | fix sending of initial reqbody chunked to backend
* [core] add comment for FastCGI mem use in hctx->rb (#3033)Glenn Strauss2020-12-241-0/+5
| | | | | | x-ref: "Memory Growth with PUT and full buffered streams" https://redmine.lighttpd.net/issues/3033
* [core] reuse large mem chunks (fix mem usage) (fixes #3033)Glenn Strauss2020-12-243-21/+83
| | | | | | | | | | | | (thx flynn) fix large memory usage for large file downloads from dynamic backends reuse or release large memory chunks x-ref: "Memory Growth with PUT and full buffered streams" https://redmine.lighttpd.net/issues/3033
* [core] prefer IPv6+IPv4 func vs IPv4-specific funcGlenn Strauss2020-12-231-5/+29
|
* [tests] remove FastCGI test dependency on libfcgiGlenn Strauss2020-12-233-19/+1
| | | | | | | - rewrite fcgi-responder as standalone app fcgi-responder is now a minimal, standalone FastCGI server for tests - remove dependency on fcgi-devel package - merge fcgi-auth into fcgi-responder
* [mod_wolfssl] compile with earlier wolfSSL versGlenn Strauss2020-12-181-3/+39
| | | | | | | | | | | | compatibility to compile with earlier wolfSSL versions compile-tested back to wolfSSL tag v3.14.0-stable configured with (possibly extra flags) ./configure --enable-opensslextra --enable-opensslall --enable-sni \ --enable-lighty --enable-stunnel --enable-nginx --enable-haproxy Functionality has not been tested! Please consider using the latest stable release of wolfSSL.
* [mod_wolfssl] use wolfSSL TLS version definesGlenn Strauss2020-12-171-35/+9
| | | | | | | now that mod_wolfssl is a standalone module, use wolfSSL TLS ver defines (Increase compatibility of mod_wolfssl with wolfSSL versions prior to wolfSSL v4.2.0)
* [core] attempt to quiet some coverity warningsGlenn Strauss2020-12-171-0/+1
|
* [core] fix decoding chunked from backend (fixes #3049)Glenn Strauss2020-12-172-51/+50
| | | | | | | | | | | | | (thx flynn) fix decoding chunked from backend truncate response and error out if backend sends excess data after chunked encoding x-ref: "Too much content with HTTP/2.0" https://redmine.lighttpd.net/issues/3049
* [core] fix crash printing trace if backend is downGlenn Strauss2020-12-161-1/+1
|
* [multiple] replace fall through comment with attrGlenn Strauss2020-12-1610-30/+32
| | | | | | | | | replace /* fall through */ comment with __attribute_fallthrough__ macro Note: not adding attribute to code with external origins: xxhash.h (algo_xxhash.h) ls-hpack/lshpack.c so to avoid warnings, may need to compile with -Wno-implicit-fallthrough