Commit Graph

  • 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
  • 615079e26c Add virtualhost features with a flag + according tests Solene Rapenne 2020-12-02 15:31:21 +0100
  • 24aa4ba284 run OpenBSDindent(1) to fix coding style Solene Rapenne 2020-12-02 13:32:39 +0100
  • 25977754ac Fix the License name, it's BSD2 and not MIT Solene Rapenne 2020-12-02 13:29:21 +0100
  • 0dc203c8c6 Fix git clone url Solene Rapenne 2020-12-02 00:01:32 +0100
  • 0c2b3737ea don't try /var/gemini tests if directory doesn't exists Solene Rapenne 2020-12-01 23:55:54 +0100
  • 06ee27cb29 Add README.md Solene Rapenne 2020-12-01 23:55:37 +0100
  • ddb799c866 Add ifdef OpenBSD for pledge/unveil, so it should compile on other OSes Solene Rapenne 2020-12-01 23:41:55 +0100
  • c2d813c0f1 Init vger Solene Rapenne 2020-12-01 23:39:05 +0100