kristapsdz
1506748adf
Add bearer authorisation.
2021-05-08 13:04:11 +00:00
kristapsdz
d650be179f
Accept hex nc's, inspired by https://github.com/kristapsdz/kcgi/pull/42 .
...
This should fix some earlier-noted issues with kcaldav, which uses a lot of
the digest authentication. Thank you!
2018-06-18 12:46:46 +00:00
kristapsdz
b37ee382c9
Replace nil -> NUL as noted by schwarze@---thanks!
2017-11-19 01:16:58 +00:00
kristapsdz
685abdeced
Full switch to oconfigure instead of current system, so remove all of the
...
test and compat files. These are now in tests.c and compats.c, and driven
by the configure script. Also remove the MD5 code, which is part of
compats.c. Lastly, move ifdefs to ifs, remove defined (same), and also
remove HAVE_CONFIG_H.
2017-10-18 21:36:59 +00:00
kristapsdz
d9d6528339
Fix misformatted comment as noted by schwarze@, thanks!
2017-10-10 20:57:29 +00:00
kristapsdz
69d7e8c353
Great catch by schwarze@: make sure IPC handles the new proper type of the
...
"nc" value.
2017-10-04 16:21:19 +00:00
kristapsdz
ceb50df667
Use the proper type for the nonce count (uint32_t) and use strtonum() to
...
ensure safe parsing.
This emerged from a bug report by schwarze@ --- thanks!
2017-10-03 23:03:03 +00:00
kristapsdz
c4d5fa64ce
As noted by schwarze@: clean up the look-ahead part of the function to be
...
clearer and note behaviour in documentation. Thanks!
2017-10-03 22:26:14 +00:00
kristapsdz
91bc550913
Patch by schwarze@ to convert all is* casts to unsigned char:
...
"On signed char architectures, the range of (int)char is -128..127,
but according to POSIX, is*(3) and tolower(3)/toupper(3), even though
they take int arguments, are undefined for negative arguments.
For portably correct behaviour, the idiom is*((unsigned char)...)
is almost always required."
2017-09-20 22:49:10 +00:00
kristapsdz
98f1a63701
Fix check for NULL instead of string boundary.
...
Found by Coverity CID 60318.
2016-01-25 20:39:10 +00:00
kristapsdz
4b6585db76
Add HTTP digest support. This was [mostly] pulled in from kcaldav.
2016-01-07 00:18:29 +00:00
kristapsdz
1208ce60d2
Allow AFL to work on OpenBSD.
2015-08-07 12:14:19 +00:00
kristapsdz
c0d5426d55
Fix size of zeroed value.
2015-04-12 17:49:58 +00:00
kristapsdz
1c147fa799
Forgot to set count to results!
2015-04-12 16:22:36 +00:00
kristapsdz
51a334bbae
Have the HTTP digest parsing routine parse out the nonce count as a number,
...
not just a string.
2015-04-11 19:41:57 +00:00
kristapsdz
1ed53faf88
Add auth standard to kcgi.3, add missing header to httpauth.c.
...
Version ready!
2015-04-10 09:35:42 +00:00
kristapsdz
2c358f2859
Fix two no-ops found with scan-build. No functional change.
2015-04-10 09:31:01 +00:00
kristapsdz
d1587fed60
Move around some code for clarity (no functional change).
...
Remove some unused functions.
2015-04-10 09:27:34 +00:00
kristapsdz
64ad87a20c
Add initial (untested) support for HTTP authorisation token parsing,
...
specifically digest parsing.
Ported from kcaldav, http://kristaps.bsd.lv/kcaldav .
2015-04-08 21:12:25 +00:00