|
Revision tags: lighttpd-1.4.69, lighttpd-1.4.68 |
|
| #
5e14db43 |
| 10-Dec-2022 |
Glenn Strauss <[email protected]> |
[multiple] employ ck_calloc, ck_malloc shared code
employ ck_calloc(), ck_malloc() shared code to slightly reduce code size (centralize the ck_assert() to check that memory allocation succeeded)
|
| #
b82d7b8a |
| 06-Dec-2022 |
Glenn Strauss <[email protected]> |
[multiple] mark mod_*_plugin_init() funcs cold
|
|
Revision tags: lighttpd-1.4.67, lighttpd-1.4.66, lighttpd-1.4.65, lighttpd-1.4.64 |
|
| #
94a16b2b |
| 04-Jan-2022 |
Glenn Strauss <[email protected]> |
[build] meson crypt and dl detection on *BSD (fixes #3133)
(thx devnexen)
x-ref: "netbsd meson build fix" https://redmine.lighttpd.net/issues/3133
|
| #
c7c34201 |
| 03-Jan-2022 |
Glenn Strauss <[email protected]> |
[build] feature consistency between build types
upate config.h.cmake for missing defines minor adjustments to other builds for features consistency
|
|
Revision tags: lighttpd-1.4.63, lighttpd-1.4.62 |
|
| #
71175df1 |
| 28-Nov-2021 |
Glenn Strauss <[email protected]> |
[mod_auth] RFC7616 HTTP Digest username* userhash
RFC7616 HTTP Digest username* and userhash support (if configured)
userhash support must be configured to enable: auth.require = ( "/" => ( "user
[mod_auth] RFC7616 HTTP Digest username* userhash
RFC7616 HTTP Digest username* and userhash support (if configured)
userhash support must be configured to enable: auth.require = ( "/" => ( "userhash" => "enable", ... ) ) and one of auth.backend = "htdigest" # mod_authn_file or auth.backend = "dbi" # mod_authn_dbi and appropriate modification to add userhash into htdigest or db table along with adding "sql-userhash" => "..." SQL query for mod_authn_dbi
Note: open issue with curl preventing userhash from working with curl: https://github.com/curl/curl/pull/8066
show more ...
|
|
Revision tags: lighttpd-1.4.61 |
|
| #
7edb1956 |
| 27-Oct-2021 |
Glenn Strauss <[email protected]> |
[mod_auth] clear crypt() output if len >= 13
crypt() static output buffer is cleared upon next call to crypt(), but clear output buffer anyway since next call to crypt() might be much later. Only c
[mod_auth] clear crypt() output if len >= 13
crypt() static output buffer is cleared upon next call to crypt(), but clear output buffer anyway since next call to crypt() might be much later. Only clear crypt() output if length >= 13, since if there is an error in crypt(), 'man crypt' warns:
"Some implementations of crypt, upon error, return an invalid hash that is stored in a read-only location or only initialized once, which means that it is only safe to erase the buffer pointed to by the crypt return value if an error did not occur."
show more ...
|
|
Revision tags: lighttpd-1.4.60 |
|
| #
67c0b149 |
| 02-Aug-2021 |
Glenn Strauss <[email protected]> |
[multiple] remove base.h include where not used
(substitute request.h if file only accesses request_st, and not connection or server structs)
|
| #
c987bec1 |
| 10-Jun-2021 |
Glenn Strauss <[email protected]> |
[multiple] use <algo>_iov() digest funcs
reduce code duplication make it easier to add new algos
mod_authn_file: - leverage r->tmp_buf instead of temporary allocating buffer_init() - mod_authn_file
[multiple] use <algo>_iov() digest funcs
reduce code duplication make it easier to add new algos
mod_authn_file: - leverage r->tmp_buf instead of temporary allocating buffer_init() - mod_authn_file_htpasswd_basic() - compare binary SHA1 (shorter) rather than base64 (longer) - split crypt() from mod_authn_file_htpasswd_basic() to separate func - apr_md5_encode() modifications for slightly better performance
show more ...
|
| #
af3df29a |
| 09-Jun-2021 |
Glenn Strauss <[email protected]> |
[multiple] reduce redundant NULL buffer checks
This commit is a large set of code changes and results in removal of hundreds, perhaps thousands, of CPU instructions, a portion of which are on hot co
[multiple] reduce redundant NULL buffer checks
This commit is a large set of code changes and results in removal of hundreds, perhaps thousands, of CPU instructions, a portion of which are on hot code paths.
Most (buffer *) used by lighttpd are not NULL, especially since buffers were inlined into numerous larger structs such as request_st and chunk.
In the small number of instances where that is not the case, a NULL check is often performed earlier in a function where that buffer is later used with a buffer_* func. In the handful of cases that remained, a NULL check was added, e.g. with r->http_host and r->conf.server_tag.
- check for empty strings at config time and set value to NULL if blank string will be ignored at runtime; at runtime, simple pointer check for NULL can be used to check for a value that has been set and is not blank ("") - use buffer_is_blank() instead of buffer_string_is_empty(), and use buffer_is_unset() instead of buffer_is_empty(), where buffer is known not to be NULL so that NULL check can be skipped - use buffer_clen() instead of buffer_string_length() when buffer is known not to be NULL (to avoid NULL check at runtime) - use buffer_truncate() instead of buffer_string_set_length() to truncate string, and use buffer_extend() to extend
Examples where buffer known not to be NULL: - cpv->v.b from config_plugin_values_init is not NULL if T_CONFIG_BOOL (though we might set it to NULL if buffer_is_blank(cpv->v.b)) - address of buffer is arg (&foo) (compiler optimizer detects this in most, but not all, cases) - buffer is checked for NULL earlier in func - buffer is accessed in same scope without a NULL check (e.g. b->ptr)
internal behavior change: callers must not pass a NULL buffer to some funcs. - buffer_init_buffer() requires non-null args - buffer_copy_buffer() requires non-null args - buffer_append_string_buffer() requires non-null args - buffer_string_space() requires non-null arg
show more ...
|
| #
3538f8f2 |
| 22-May-2021 |
Glenn Strauss <[email protected]> |
[mod_auth*] rename http_auth.* -> mod_auth_api.*
rename http_auth.[ch] -> mod_auth_api.[ch]
|
| #
e110b062 |
| 22-May-2021 |
Glenn Strauss <[email protected]> |
[multiple] http_auth_digest_hex2bin -> li_hex2bin
move http_auth.c:http_auth_digest_hex2bin() to buffer.c:li_hex2bin() for reuse, e.g. for use by mod_secdownload, which is not mod_auth*
|
| #
08c03cd4 |
| 22-May-2021 |
Glenn Strauss <[email protected]> |
[multiple] rename safe_memclear() -> ck_memzero()
|
| #
62ccda85 |
| 22-May-2021 |
Glenn Strauss <[email protected]> |
[multiple] move const time cmp funcs to ck.[ch]
http_auth_const_time_memeq_pad() -> ck_memeq_const_time() http_auth_const_time_memeq() -> ck_memeq_const_time_fixed_len()
|
| #
7a15bfcf |
| 08-May-2021 |
Glenn Strauss <[email protected]> |
[mod_auth] include unistd.h for crypt() on *nix
(needed by *BSD in addition to Mac OS)
|
| #
060be714 |
| 05-May-2021 |
Glenn Strauss <[email protected]> |
[mod_auth] include unistd.h for crypt() on Mac OS
|
| #
9ac307ec |
| 29-Apr-2021 |
Glenn Strauss <[email protected]> |
[mod_authn_file] wipe password/digest after use
slurp password/digest file into memory and then clear after use (avoid stdio, which buffers by default and does not wipe those buffers)
password/dige
[mod_authn_file] wipe password/digest after use
slurp password/digest file into memory and then clear after use (avoid stdio, which buffers by default and does not wipe those buffers)
password/digest files are not expected to be very large e.g. a password file with 1000 entries is expected to be < 64k If files are larger, mod_authn_dbi or other mod_authn_* is recommended
show more ...
|
|
Revision tags: lighttpd-1.4.59, lighttpd-1.4.58, lighttpd-1.4.57, lighttpd-1.4.56, lighttpd-1.4.56-rc7, lighttpd-1.4.56-rc6, lighttpd-1.4.56-rc5, lighttpd-1.4.56-rc4, lighttpd-1.4.56-rc3, lighttpd-1.4.56-rc2, lighttpd-1.4.56-rc1 |
|
| #
3dca9235 |
| 15-Jul-2020 |
Glenn Strauss <[email protected]> |
[mod_authn_mysql,file] use crypt() to save stack
use crypt() instead of crypt_r() to save stack space, as struct crypt_data might be very large.
While crypt() is not thread-safe, lighttpd is single
[mod_authn_mysql,file] use crypt() to save stack
use crypt() instead of crypt_r() to save stack space, as struct crypt_data might be very large.
While crypt() is not thread-safe, lighttpd is single-threaded
show more ...
|
| #
1fc8a3e1 |
| 24-May-2020 |
Glenn Strauss <[email protected]> |
[core] sys-crypto-md.h w/ inline message digest fn
sys-crypto-md.h w/ inline message digest functions; shared code
|
| #
bf4054f8 |
| 14-May-2020 |
Glenn Strauss <[email protected]> |
[mod_gnutls] GnuTLS option for TLS (fixes #109)
(experimental)
mod_gnutls supports most ssl.* config options supported by mod_openssl
x-ref: "GnuTLS support for the mod_ssl" https://redmine.li
[mod_gnutls] GnuTLS option for TLS (fixes #109)
(experimental)
mod_gnutls supports most ssl.* config options supported by mod_openssl
x-ref: "GnuTLS support for the mod_ssl" https://redmine.lighttpd.net/issues/109
show more ...
|
| #
cb753ec5 |
| 19-Mar-2020 |
Glenn Strauss <[email protected]> |
[mod_mbedtls] mbedTLS option for TLS
(experimental)
mod_mbedtls supports most ssl.* config options supported by mod_openssl
thx Ward Willats for the initial discussion and attempt in the comments
[mod_mbedtls] mbedTLS option for TLS
(experimental)
mod_mbedtls supports most ssl.* config options supported by mod_openssl
thx Ward Willats for the initial discussion and attempt in the comments https://redmine.lighttpd.net/boards/3/topics/7029
show more ...
|
| #
b28a3714 |
| 25-Feb-2020 |
Glenn Strauss <[email protected]> |
[multiple] ./configure --with-nettle to use Nettle
./configure --with-nettle to use Nettle crypto lib for algorithms, instead of OpenSSL or wolfSSL. Note: Nettle does not provide TLS.
x-ref: "Ho
[multiple] ./configure --with-nettle to use Nettle
./configure --with-nettle to use Nettle crypto lib for algorithms, instead of OpenSSL or wolfSSL. Note: Nettle does not provide TLS.
x-ref: "How to use SHA-256 without OpenSSL?" https://redmine.lighttpd.net/boards/2/topics/8903
show more ...
|
|
Revision tags: lighttpd-1.4.55 |
|
| #
7c7f8c46 |
| 13-Jan-2020 |
Glenn Strauss <[email protected]> |
[multiple] split con, request (very large change)
NB: r->tmp_buf == srv->tmp_buf (pointer is copied for quicker access)
NB: request read and write chunkqueues currently point to connection chun
[multiple] split con, request (very large change)
NB: r->tmp_buf == srv->tmp_buf (pointer is copied for quicker access)
NB: request read and write chunkqueues currently point to connection chunkqueues; per-request and per-connection chunkqueues are not distinct from one another con->read_queue == r->read_queue con->write_queue == r->write_queue
NB: in the future, a separate connection config may be needed for connection-level module hooks. Similarly, might need to have per-request chunkqueues separate from per-connection chunkqueues. Should probably also have a request_reset() which is distinct from connection_reset().
show more ...
|
| #
cc2134c8 |
| 11-Jan-2020 |
Glenn Strauss <[email protected]> |
[multiple] copy small struct instead of memcpy()
when patching config
|
| #
010c2894 |
| 25-Nov-2019 |
Glenn Strauss <[email protected]> |
[multiple] prefer (connection *) to (srv *)
convert all log_error_write() to log_error() and pass (log_error_st *)
use con->errh in preference to srv->errh (even though currently same)
avoid passi
[multiple] prefer (connection *) to (srv *)
convert all log_error_write() to log_error() and pass (log_error_st *)
use con->errh in preference to srv->errh (even though currently same)
avoid passing (server *) when previously used only for logging (errh)
show more ...
|
| #
b73949e0 |
| 19-Nov-2019 |
Glenn Strauss <[email protected]> |
[multiple] plugin.c handles common FREE_FUNC code
(simpler for modules; less boilerplate to cut-n-paste)
|