aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* README.md: Fix broken link to usergenXavier Del Campo Romero2023-03-061-4/+4
|
* Perform some minor optimizationsXavier Del Campo Romero2023-03-063-10/+3
|
* main.c: Simplify failed login responseXavier Del Campo Romero2023-03-061-16/+3
| | | | | - Location seems to have no effect on 401 HTTP responses. - Content-Type is already set by page_failed_login.
* http.c: Compare headers as case-insensitiveXavier Del Campo Romero2023-03-041-1/+1
| | | | | Web browsers such as lynx send "Content-length" instead of "Content-Length" (as done by LibreWolf and Chromium).
* http.c: Use persistent cookiesXavier Del Campo Romero2023-03-041-0/+40
| | | | | | Cookies without "Expires" are considered non-persistent and thus can be removed by the web browser. Instead, slcl now sets persistent cookies that last for 1 year.
* http.c: Improve error detection for strotull(3)Xavier Del Campo Romero2023-03-041-1/+12
| | | | | set_length relies on user input to determine Content-Length, so it should be considered unreliable.
* Fix memory leak on failed realloc(3)Xavier Del Campo Romero2023-03-044-33/+79
| | | | | | | | | | According to C99 ยง7.20.3.4: If memory for the new object cannot be allocated, the old object is not deallocated and its value is unchanged. Therefore, a temporary pointer must be used to ensure the original object can still be deallocated should realloc(3) return a null pointer.
* Add man pageXavier Del Campo Romero2023-02-281-0/+123
|
* Add usergenXavier Del Campo Romero2023-02-281-0/+29
| | | | | | This script takes a username and password from standard input and generates a JSON object that can be appended to the "users" object in db.json.
* Add MakefileXavier Del Campo Romero2023-02-281-0/+34
|
* Add .gitignoreXavier Del Campo Romero2023-02-281-0/+4
|
* Import dynstrXavier Del Campo Romero2023-02-282-0/+3
|
* Initial commitXavier Del Campo Romero2023-02-2820-0/+6123