Commit Graph

  • 575e9267f7 Merge pull request #97 from bapt/master master Kristaps Dz 2022-04-02 11:17:13 -08:00
  • 9ed56c1994 Merge pull request #98 from emilengler/2022-03-typo-man Kristaps Dz 2022-04-02 11:16:35 -08:00
  • 9121aa1b1b Fix spelling mistake in kcgi.3. Emil Engler 2022-03-01 17:57:12 +01:00
  • fe203d650f Add the "role" attribute from ARIA Baptiste Daroussin 2022-01-11 10:18:08 +01:00
  • eb8ed8af8c No longer using a CVS backend repository. Kristaps Dz 2021-09-24 09:24:49 +02:00
  • 2601ac1ef7 Version notes. Kristaps Dz 2021-09-23 22:12:14 +02:00
  • 760f3c3212 Add more files to ignore list. Kristaps Dz 2021-09-23 15:50:32 +02:00
  • c37614ff8a Merge pull request #95 from szanni/seccomp-filter-fix Kristaps Dz 2021-09-23 15:40:08 +02:00
  • 7fef903650 Merge pull request #94 from cornett/html-write Kristaps Dz 2021-09-23 15:39:28 +02:00
  • 8b35a20d1a Use proper warning function. Kristaps Dz 2021-09-23 15:38:01 +02:00
  • 18e47345c0 Merge branch 'emilengler-2021-07_snprintf_check' into master Kristaps Dz 2021-09-23 15:20:56 +02:00
  • c978a4ed4b Merge branch '2021-07_snprintf_check' of https://github.com/emilengler/kcgi into emilengler-2021-07_snprintf_check Kristaps Dz 2021-09-23 15:20:34 +02:00
  • 8d5b3e263a Abandoned seccomp by default. Kristaps Dz 2021-09-23 14:45:37 +02:00
  • 29f1fd6cc6 Sync with newest oconfigure. Kristaps Dz 2021-09-23 14:35:14 +02:00
  • 8bc26b4a09 Keep up to date with new developments. kristapsdz 2021-09-23 12:23:21 +00:00
  • 9be0864fef Add newfstatat() syscall to seccomp filter allow list. Angelo Haller 2021-08-24 11:02:23 -05:00
  • 290d9f2c0a Fix khtml_write.3 example Ben Cornett 2021-08-06 16:30:02 +00:00
  • d108cbc4e6 Check for snprintf(3) failure. Emil Engler 2021-07-26 17:12:03 +02:00
  • 12c1d9d7db Add tests for bearer validation and do some style(9). kristapsdz 2021-05-12 10:07:32 +00:00
  • cb1d14d0d7 CURLOPT_BEARER isn't always defined. kristapsdz 2021-05-12 10:01:05 +00:00
  • 790d4d9711 It's common to use the "bearer" authentication in the same way as the basic. Allow this to happen and document it. kristapsdz 2021-05-12 09:58:46 +00:00
  • c8475c9099 No need to hotfix a version for this. kristapsdz 2021-05-08 14:50:33 +00:00
  • 40337060b3 Forgot to set date. kristapsdz 2021-05-08 14:49:01 +00:00
  • 476787dabb Bump version. kristapsdz 2021-05-08 14:41:21 +00:00
  • d666285483 Add example and note behaviour following khttp_fcgi_init(). kristapsdz 2021-05-08 14:30:41 +00:00
  • 9a51677e8a Typo in testing for non-NULL. kristapsdz 2021-05-08 14:30:20 +00:00
  • 1f494347bf mandoc nits. kristapsdz 2021-05-08 13:48:10 +00:00
  • 972fb69825 Add KAUTH_BEARER documentation. kristapsdz 2021-05-08 13:36:15 +00:00
  • bd4fdbce9b Add tests for bearer authorisation. kristapsdz 2021-05-08 13:20:25 +00:00
  • 1506748adf Add bearer authorisation. kristapsdz 2021-05-08 13:04:11 +00:00
  • 4e867a60d7 Tweak. kristapsdz 2021-05-08 09:54:59 +00:00
  • e58eab54b8 Sync with license text in sources. kristapsdz 2021-05-08 09:54:01 +00:00
  • ad18d54ef1 Version bump. kristapsdz 2021-03-02 22:37:47 +00:00
  • 587c681353 Bring up to speed with oconfigure. kristapsdz 2021-03-02 21:15:56 +00:00
  • 9ccaea4f88 Add some HTML5.2 elements. kristapsdz 2021-03-02 21:15:26 +00:00
  • a2d7dbc5e7 Add some more HTML5.2 attributes. kristapsdz 2021-03-02 21:07:08 +00:00
  • d66587dda6 Specifically note HTML5.2 conformance. kristapsdz 2021-03-02 20:14:42 +00:00
  • aaf82d965e Add support for the <main> flow tag. This is an HTML5 flow element and has been since the initial HTML5 standard. kristapsdz 2021-03-02 20:13:40 +00:00
  • c96aeccbd7 Bump version and add version notes. kristapsdz 2021-01-20 22:35:40 +00:00
  • 2667da7625 Bring up to date with latest oconfigure. kristapsdz 2021-01-20 22:29:03 +00:00
  • 496843721b Typo. Thank you to Conrad Pankoff for the report! kristapsdz 2021-01-20 22:28:19 +00:00
  • 45babf729d Use correct CFLAGS for regression to avoid spamming about deprecated. kristapsdz 2021-01-20 22:23:45 +00:00
  • d239abaa20 Cast to silence compiler warning. kristapsdz 2021-01-20 22:23:20 +00:00
  • ee12f2da1f Make sure we're not doing pointer arithmetic with an int64_t size. Thanks to A. Tammy for providing a system for this problem to be diagnosed and fixed! kristapsdz 2021-01-20 22:16:10 +00:00
  • cfe14c8cce Split khttp_templatex functions out of khttp_template.3. Provide working examples for both. kristapsdz 2020-10-17 12:02:59 +00:00
  • 15a2db7654 Make sure that multiple similar keys only select the first. kristapsdz 2020-10-17 10:36:23 +00:00
  • 3aa6e4f74a Make sure abutting escape works. kristapsdz 2020-10-17 10:32:47 +00:00
  • 409cb9ab69 Check for empty key sequences. kristapsdz 2020-10-17 10:30:06 +00:00
  • 6d2166211c Actually give kcgiregress(3) a proper example and bring its language and content in line with the other manpages. kristapsdz 2020-08-14 10:49:48 +00:00
  • 53d2f56a7f Version and noting new architectures. kristapsdz 2020-07-24 13:00:14 +00:00
  • 018c560a64 Don't use fsize rlimit: it breaks kutil_openlog. kristapsdz 2020-07-24 11:22:31 +00:00
  • 3c66259682 When using kutil_openlog(), a file may be opened with freopen(). The first log message via kutil_log() et al. will thus emit a fstat() and possibly an lseek() to find the end of the file before appending. This was breaking the sandbox filter, which has write allowed but not fstat/lseek. kristapsdz 2020-07-24 10:37:58 +00:00
  • 73e5e1a5e2 Compile on Linux (seccomp). kristapsdz 2020-07-24 09:19:55 +00:00
  • 8bcf3cdf76 Note Capsicum bugfix. kristapsdz 2020-07-23 10:41:47 +00:00
  • 5e21770084 Allow writing to (for example) a log file opened with kutil_openlog when using FreeBSD's capsicum. kristapsdz 2020-07-23 10:39:43 +00:00
  • 9d2678f0b3 Get ready for new version. kristapsdz 2020-07-21 12:59:17 +00:00
  • d184086ee7 Copyright. kristapsdz 2020-07-21 12:58:42 +00:00
  • 6860e3748e Safer logging: encode more non-printing characters as their literals. kristapsdz 2020-07-21 12:57:33 +00:00
  • ae8dad3cbb Clarify debugging. kristapsdz 2020-07-21 10:44:50 +00:00
  • 588fae1f11 Finalise on debug logging format, switch writes debugging to use kutil_info. In doing so, switch to a static line buffer and simplify a lot of code used for writing. kristapsdz 2020-07-21 10:44:27 +00:00
  • e6e70507c5 Use regular logging functions for KREQ_DEBUG_READ_BODY. kristapsdz 2020-07-20 13:22:11 +00:00
  • 663f5cb0d7 Move log parsing into regress.h. kristapsdz 2020-07-20 12:57:29 +00:00
  • caad776555 Modernise with style(9) and err(3). kristapsdz 2020-07-20 10:14:20 +00:00
  • 0f7f5071ab All kxsocketpair() callers use the same arguments, so don't pass them. kristapsdz 2020-07-17 14:03:24 +00:00
  • ee09bfac8a Remove XASPRINTF and XVASPRINTF, make return checks for -1, make exported wrapper functions consistent in error handling. kristapsdz 2020-07-17 13:58:05 +00:00
  • ecc091c29b Replace XMALLOC and XCALLOC and use some style(9) while there. kristapsdz 2020-07-17 13:32:36 +00:00
  • 05f95f41ab Remove the XREALLOC and XREALLOCARRAY functions. Plug a small memory leak when unable to reallocate kpairs. kristapsdz 2020-07-17 13:14:44 +00:00
  • d77e5db1dc Remove XSTRDUP macro and remove superfluous line/file bits from kxstrdup. kristapsdz 2020-07-17 13:09:23 +00:00
  • 92c0cef530 Remove last vestiges of XWARN[X] from system and remove the macros too. kristapsdz 2020-07-17 12:54:03 +00:00
  • 2fcaae3bf5 Remove superfluous error messages and style(9). kristapsdz 2020-07-17 12:47:32 +00:00
  • e41c52f35d Move away from XWARN[X], clean up some code-paths, add style(9), remove inapplicable comments. kristapsdz 2020-07-17 12:42:45 +00:00
  • d28ba16446 Stray XWARN fix. kristapsdz 2020-07-17 12:23:11 +00:00
  • bb7f31d62b Remove XWARN[X], more style(9). kristapsdz 2020-07-17 12:22:28 +00:00
  • d2a2f7456d Move from XWARN[X], clean up some logic, remove some superfluous error messages. kristapsdz 2020-07-17 12:15:01 +00:00
  • 3da1abdf53 Don't use XWARN and fix copypasta. kristapsdz 2020-07-17 10:09:39 +00:00
  • 4d7a2e049f Don't use XWARNX. kristapsdz 2020-07-17 10:07:37 +00:00
  • 8f6510b531 Don't use XWARN[X], check return values for some system calls (e.g., signal), don't report on failure from functions (e.g., kxsetsockopt) that already report failure. In general, be more sparing with error reporting---most of these don't really tell us much. Liberally apply style(9). kristapsdz 2020-07-17 10:06:30 +00:00
  • 2fd6319fa5 Make sure that writer front-ends depend upon extern.h. kristapsdz 2020-07-17 07:59:56 +00:00
  • c46647f70a Remove XWARN and use style(9). kristapsdz 2020-07-17 07:56:42 +00:00
  • c6b48927b0 Less XWARN and more style(9). kristapsdz 2020-07-16 17:49:10 +00:00
  • 83bf07276b Move away from XWARN and apply style(9) liberally. kristapsdz 2020-07-16 17:10:06 +00:00
  • 65b4d015b2 Replace XWARN[X] with kutil_warn[x]. Sprinkle style(9) liberally. kristapsdz 2020-07-16 13:15:03 +00:00
  • ed3889ae5c Convert wrappers.c to using kutil_warn-style functions instead of the macro wrappers. Use style(9). Remove an unused function. Clarify docs. kristapsdz 2020-07-15 08:32:43 +00:00
  • ea1c07a7d6 Start leaning away from XWARN[X] in wrappers.c by using kutil_warn[x] directly. Liberally apply style(9). Fix a yet-unfound bug where fullwritefd() would return integral errors (<0, >0, 0), but the caller was doing a boolean test of the result. Now fullwritefd() properly returns a boolean value. kristapsdz 2020-07-14 12:25:03 +00:00
  • da43c0ea40 Switch to using kutil_warn and kutil_warnx for the XWARN and XWARNX macros. This removes the old kxwarn[x] functions that didn't do much and did it poorly at that. This shouldn't affect any callers unless they depend on backend logging formats, which is undocumented anyway. kristapsdz 2020-07-14 11:23:47 +00:00
  • 7c228ad621 Add new regression test. kristapsdz 2020-07-14 11:19:21 +00:00
  • 628724ad60 Test that error logging exits the process. Also fix for WEXITSTATUS. kristapsdz 2020-07-14 11:18:19 +00:00
  • 16ba729553 Fix old reference to kutil_xxxx. kristapsdz 2020-07-11 14:14:15 +00:00
  • a727ec72e9 Use newest oconfigure. kristapsdz 2020-05-30 15:15:06 +00:00
  • d8e00474b7 Fix tags. kristapsdz 2020-05-11 14:13:04 +00:00
  • 1657900a37 Add forgotten manpage. kristapsdz 2020-05-11 14:12:58 +00:00
  • 2758874528 Use the results of random or arc4random instead of constantly erroring out in the native conversion. kristapsdz 2020-05-11 14:08:28 +00:00
  • 59730c5e94 Cover more of the possible 64-bit time space. kristapsdz 2020-05-11 11:46:31 +00:00
  • 903c8351b5 Tune up version notes for release. kristapsdz 2020-05-11 11:26:45 +00:00
  • bf6761e648 Merge versions. kristapsdz 2020-05-11 11:22:43 +00:00
  • 5a2e7ec57f Test over the full range of int64_t possible dates. kristapsdz 2020-05-11 11:15:15 +00:00
  • 14f51be89c Add debugging. kristapsdz 2020-05-11 11:02:16 +00:00
  • 28e3b39929 Typo fix. kristapsdz 2020-05-11 10:56:43 +00:00
  • a4bd90faf0 Be more specific on when these functions fail. kristapsdz 2020-05-11 10:56:18 +00:00
  • cace5ea73c Optimise the year calculation. This was doing a linear scan of each year, accumulating the days per year. Convert it to doing a linear scan til the 400 year barrier, then consuming the intervening eras all at once. This makes the computation effectively constant-time. (It can be improved, by also jumping forward in centennials, but I wanted to have the easiest-to-read version first.) kristapsdz 2020-05-11 10:54:22 +00:00