This website requires JavaScript.
5a9b2518be
Allow dropping privs on platforms without setresuid()
master
Mike Barnes
2022-01-29 16:14:37 +1100
47e075383f
Set facility with openlog, fix message priorites.
Mike Barnes
2022-01-29 16:01:29 +1100
01f2503376
fix NetBSD macro check
Solene Rapenne
2022-01-26 13:04:04 +0100
36e3d10cd2
fix cgi support for PATH_INFO
aabacchus
2021-11-01 18:17:45 +0000
ed6dc1ed12
add .gitignore for build artifacts
1.08
Solene Rapenne
2021-12-13 21:44:03 +0100
0d3d453498
test.sh should be executable out of the box
Solene Rapenne
2021-12-13 21:34:49 +0100
914a143c3f
add Nix shell file
Solene Rapenne
2021-12-13 21:34:35 +0100
a319de23f7
Add configure script
Solene Rapenne
2021-12-13 21:32:08 +0100
15d09d2c01
fix user chroot issue + style
prx
2021-10-21 11:41:22 +0200
843d1f0ab7
send header before other messages
1.07
prx
2021-04-30 12:45:34 +0200
f8aff7fe05
fix cgi error (file not found) and useless 'unveil' pledge promise
prx
2021-04-30 09:38:12 +0200
4972df5999
Fix virtualhost support changing the way request is parsed
prx
2021-03-22 21:44:23 +0100
365e99400a
Support all other BSD ! <3
1.06
Solene Rapenne
2021-03-14 21:29:51 +0100
807d1b8409
Add a configure script to make compiling on Linux easier
1.05
Solene Rapenne
2021-03-14 14:18:06 +0100
02d2d1dc7d
percent-decoding
prx
2021-03-09 20:45:12 +0100
de52acecfc
Merge branch 'master' of tildegit.org:solene/vger
prx
2021-03-09 20:37:46 +0100
ee8569c6e6
simplify cgi function
Omar Polo
2021-03-06 20:46:47 +0000
16a5ed7b30
drop unnecessary unveil(NULL, NULL)
Omar Polo
2021-03-06 20:38:54 +0000
8454548b51
add test for redirect with trailing slash with vhosts on
Omar Polo
2021-03-06 20:36:06 +0000
cbcf4ec9b6
fix redirect when vhost support is enabled
Omar Polo
2021-03-06 20:31:39 +0000
7431d3eeec
Use the correct error codes and meaningful explanations
Omar Polo
2021-03-06 20:21:13 +0000
e9be1b73a7
percent-decode uri
prx
2021-03-02 10:06:09 +0100
e87b36c991
check request length for empty and too long
prx
2021-03-02 10:04:04 +0100
e3b5fb2ab3
Revert "deal with too small/long requests"
Solene Rapenne
2021-03-01 19:35:41 +0100
9525d66afb
Revert "follow spec, fread() get nmemb-1"
Solene Rapenne
2021-03-01 19:35:37 +0100
d086262d1a
Revert "empty request should works all the time, not only when in virtualhost"
Solene Rapenne
2021-03-01 19:35:17 +0100
7b0686bdfa
empty request should works all the time, not only when in virtualhost
Solene Rapenne
2021-02-27 19:59:28 +0100
fbacb35170
follow spec, fread() get nmemb-1
prx
2021-02-25 20:30:30 +0100
efa1f639fc
deal with too small/long requests
prx
2021-02-25 18:37:48 +0100
458592594e
Repair chroot, the only feature that isn't covered by tests
Solene Rapenne
2021-02-23 23:24:12 +0100
31d384833f
Rewording
Solene Rapenne
2021-02-08 21:55:55 +0100
ff78ea5049
Documentation rewording
1.04
Solene Rapenne
2021-02-05 21:28:41 +0100
349e56c28c
Bump LICENSE to include 2021
Solene Rapenne
2021-02-05 21:28:21 +0100
2191a8a18b
Fix make clean, find conditions are tricky
Solene Rapenne
2021-02-05 21:24:32 +0100
84120dca09
remove double ticks
prx
2021-02-03 21:01:07 +0100
43170e6804
restore all tests after mistake
prx
2021-02-03 21:00:38 +0100
f0dbd2c9ed
ready for Linux && disable solene's specific tests
prx
2021-02-03 20:46:36 +0100
55042768e5
restore parent link in autoindex and add comments
prx
2021-01-31 22:05:48 +0100
189803ab52
useless space
prx
2021-01-31 21:21:46 +0100
de7cd12f9f
ignore after ? and make cgi+virtualhost work (sort of)
prx
2021-01-31 21:21:15 +0100
3510035711
fix unacceptable ../ in autoidx and code formatting
prx
2021-01-31 13:59:24 +0100
2cc63136f8
alphasort autoindex + add proper error code fir cgi
prx
2021-01-14 14:30:11 +0100
495fa3213f
small tip for cgi
prx
2021-01-14 13:54:29 +0100
f6bc000adc
fix status code in cgi script
prx
2021-01-14 13:49:46 +0100
470e47a018
Add simple cgi support +: * read file byte after byte * format code (syslog + err) * move functions in utils.c
prx
2021-01-14 13:31:51 +0100
332a5cd1d6
Tell about autoindex in README
1.03
Solene Rapenne
2021-01-10 13:11:46 +0100
c2debd2d6c
Man page rewording
Solene Rapenne
2021-01-10 13:10:32 +0100
f60ea88c8d
add mimetype and autoindex option + minor changes * follow style(9) for prototypes * move first most used extension for more effeciciency when looking for mime * add opts.h to deal with options * remove lang=en by default * add option to set default mimetype * add option to autoindex if no index.gmi found * redirect if ending "/" is missing * send appropriate status code if request too long * edit manpage and README for new options
prx
2021-01-10 09:30:35 +0100
4a1b0c8ce2
fix issue if missing ending '/' and add appropriate test
prx
2021-01-06 21:37:38 +0100
ec3d847e1c
explain inetd should only answer on 127.0.0.1 instead of all interfaces. Suggestion from xhr
Solene Rapenne
2021-01-03 21:42:18 +0100
b2ccab7448
Error code = 51 (not found) and redirection is now 30 following specifications Appendix https://gemini.circumlunar.space/docs/specification.html
1.02
Solene Rapenne
2021-01-03 17:50:45 +0100
d8a49b1827
add missing symlink for previously added test
Solene Rapenne
2021-01-02 16:30:12 +0100
76c107a582
Reminder about opening TCP/1965 in the firewall
Solene Rapenne
2021-01-02 12:31:18 +0100
f0f05b83aa
Add support to redirection
1.01
Solene Rapenne
2021-01-01 21:00:40 +0100
ef93e01091
Remove the port part of the hostname + according test suite patch from prx
1.00
Solene Rapenne
2021-01-01 16:08:51 +0100
1753181bff
add IRI tests using utf8 or emojis
Solene Rapenne
2020-12-28 09:26:36 +0100
d5cf84928e
fix tests, initialize all, remove useless var
prx
2020-12-10 12:49:01 +0100
f9dc956824
errcheck strlcat
prx
2020-12-09 21:12:25 +0100
8aa3acd2d4
add errors checks on strlcpy, fgets, use faster memmove to don't need buffer
prx
2020-12-09 21:08:09 +0100
e3448992bc
use macro
prx
2020-12-09 13:53:21 +0100
e3cb05af6d
init all
prx
2020-12-08 21:51:56 +0100
7381464bf7
initialize option
prx
2020-12-08 21:48:35 +0100
44a767f577
initialize pos
prx
2020-12-08 21:48:21 +0100
6d0d8d8130
add missing useradd, simplify cert usage with relayd
prx
2020-12-09 14:26:08 +0100
395eeeccea
path is supposed to be const. format unveil in a fuction
prx
2020-12-09 14:20:10 +0100
4e82f1e44c
remove unused extension and fix warnings
prx
2020-12-09 08:31:18 +0100
fa328268e2
No need to copy path to a local buffer, use it directly.
Florian Obser
2020-12-06 11:37:32 +0100
5a238e8666
Use BUFSIZ for the amount of data to copy through stdio.
Florian Obser
2020-12-06 11:27:43 +0100
8c5e344707
Enhance README with install instructions and tell about chroot for everyone
Solene Rapenne
2020-12-05 20:12:13 +0100
bfd1f66350
Return a constant string from the mimes database.
Florian Obser
2020-12-05 16:58:26 +0100
519de783b6
Declare and initialize the mime database in one statement.
Florian Obser
2020-12-05 16:47:33 +0100
da225e1adc
Add a check for OpenBSD unveil()
Solene Rapenne
2020-12-05 14:45:09 +0100
16657e070c
Fix file path after chroot()
Solene Rapenne
2020-12-05 14:44:59 +0100
f28f906b6a
stat(2) can fail, rearange error handling to handle this
Florian Obser
2020-12-04 19:43:29 +0100
75cf996cec
safely drop privs
Florian Obser
2020-12-04 19:39:16 +0100
8d69d84784
errno is not set here
Florian Obser
2020-12-04 19:31:42 +0100
27bc29da7a
sys/ includes go at the front
Florian Obser
2020-12-04 19:31:13 +0100
3d18122b7e
main does not need a prototype
Florian Obser
2020-12-04 19:30:45 +0100
5b3dc1dd02
Do not include c sources
Florian Obser
2020-12-04 19:29:44 +0100
345215fa9b
Code refactoring: get_file_mime got into mime.c and all security code moved into a procedure
Solene Rapenne
2020-12-04 19:08:36 +0100
e03ed1ca2b
Document exit status in man page
Solene Rapenne
2020-12-04 18:57:15 +0100
e9c3945ede
Add syslog messages
Solene Rapenne
2020-12-04 18:55:31 +0100
fde0939d77
Remove chroot() from TODO because it's done
Solene Rapenne
2020-12-03 23:03:48 +0100
a05fdee016
Remove database iterator, no longer useful after the MIME database change. Proposed by oa.
Solene Rapenne
2020-12-03 23:03:08 +0100
b3bb3b2f91
Add chroot() feature
Solene Rapenne
2020-12-03 22:59:39 +0100
f00fb88c62
Documentation improvements
Solene Rapenne
2020-12-03 22:18:26 +0100
03122f78bd
Tell about the language change parameter
Solene Rapenne
2020-12-03 22:08:29 +0100
7b0ae577c6
Adding missing test files
Solene Rapenne
2020-12-03 22:06:48 +0100
d3b69329ad
Document the default index.gmi if no file is requested
Solene Rapenne
2020-12-03 22:02:16 +0100
7fcb978bc5
Use hostname.example from RFC2606
Solene Rapenne
2020-12-03 21:59:22 +0100
493302530b
Update TODO list in README.md
Solene Rapenne
2020-12-03 21:41:29 +0100
aa3b495dbf
Add manual page
Solene Rapenne
2020-12-03 21:40:16 +0100
2cf92e196c
Move the license from the code to dedicated LICENSE file
Solene Rapenne
2020-12-03 21:22:22 +0100
c399161f7a
Also clean .core files in the clean target
Solene Rapenne
2020-12-03 21:06:28 +0100
cbcf526d76
Make the MIME database as a global variable, it's a lot more cleaner. (thanks to oa for recommendation)
Solene Rapenne
2020-12-03 21:06:17 +0100
b052105b2b
Move install target below so it's not a default make target
Solene Rapenne
2020-12-02 20:02:07 +0100
64912e9f6e
Update the documentation about MIME
Solene Rapenne
2020-12-02 20:00:14 +0100
1e0bb0368c
Add MIME support + according tests
Solene Rapenne
2020-12-02 19:59:52 +0100
dd201d73d9
Add a flag to change the default language in the return status code
Solene Rapenne
2020-12-02 18:07:10 +0100
7575537b6e
Add install target with customizable PREFIX
Solene Rapenne
2020-12-02 18:06:45 +0100