Evgeny Grin (Karlson2k)
2f8eefada8
Added MHD_OPTION_DIGEST_AUTH_NONCE_BIND_TYPE to control how to generate and
...
check nonces for Digest Auth
2022-08-15 16:21:45 +03:00
Evgeny Grin (Karlson2k)
25863e1c89
daemon.c: fixed and simplified sockaddr alignment handling
2022-08-15 16:21:45 +03:00
Evgeny Grin (Karlson2k)
b115e254b3
mhd_str: added function for bin to hex without zero-termination
2022-08-15 16:21:45 +03:00
Evgeny Grin (Karlson2k)
7d2bf24310
digestauth: added log messages if realm is rejected due to its size
2022-08-15 16:21:45 +03:00
Evgeny Grin (Karlson2k)
477f614947
digestauth: do not use "algorithm" in response header in RFC2069 mode
2022-08-15 16:21:44 +03:00
Evgeny Grin (Karlson2k)
39b9f6cf6d
digestauth: warn about RFC2069 used with SHA-256
2022-08-15 16:21:44 +03:00
Evgeny Grin (Karlson2k)
0b9d022e8e
digestauth: corrected log message for RFC2069 mode
2022-08-15 16:21:44 +03:00
Evgeny Grin (Karlson2k)
0d85695349
digestauth: add log warning for empty random data
2022-08-15 16:21:44 +03:00
Evgeny Grin (Karlson2k)
067b623407
daemon.c: cosmetics
2022-08-15 16:18:09 +03:00
Evgeny Grin (Karlson2k)
c6b2aee828
microhttpd: minor doxy improvement
2022-08-12 17:39:13 +03:00
Evgeny Grin (Karlson2k)
5338e4cb36
digestauth: use internal header for mutex instead of system header
2022-08-11 14:02:03 +03:00
Evgeny Grin (Karlson2k)
9a18a4f83d
test_auth_parse: added check of two auths types parsing in one request
2022-08-09 21:24:55 +03:00
Evgeny Grin (Karlson2k)
228ddbd181
digestauth: limit nonce-count to uint32_t
2022-08-09 21:24:55 +03:00
Evgeny Grin (Karlson2k)
20001736f8
test_auth_parse: added testing of 'userhash' parameter parsing
2022-08-09 21:24:55 +03:00
Evgeny Grin (Karlson2k)
6bf4168dfe
gen_auth: added support for two authorization headers in request
2022-08-09 21:24:54 +03:00
Evgeny Grin (Karlson2k)
82d864759c
Internal refactoring: moved all reply-related members to separate structure
2022-08-09 21:24:53 +03:00
Evgeny Grin (Karlson2k)
93ef470112
Internal refactoring: moved all request-related members to separate structure
...
This should improve readability of the code and simplify reset.
2022-08-06 10:43:15 +03:00
Christian Grothoff
bb33e458ef
-typo
2022-07-31 21:59:09 +02:00
Christian Grothoff
5c3cdf717b
-fix typos
2022-07-30 23:40:22 +02:00
Evgeny Grin (Karlson2k)
34059c3094
MHD_digest_auth_check3(): return failed parameter if it is known
2022-07-30 22:28:45 +03:00
Evgeny Grin (Karlson2k)
51bea81bf7
microhttpd.h: sorted Digest Auth functions and enums
...
This should improve readability of the header.
2022-07-30 22:28:44 +03:00
Evgeny Grin (Karlson2k)
f708f54c03
test_digestauth2: added testing of RFC2069 mode
2022-07-30 22:28:44 +03:00
Evgeny Grin (Karlson2k)
fff9fa7832
digestauth: implemented support for RFC 2069
...
The old Digest Auth specification, but still supported by many clients.
2022-07-30 22:28:44 +03:00
Evgeny Grin (Karlson2k)
7727073aab
test_digestauth2: added testing of Auth v2 API
2022-07-30 22:28:44 +03:00
Evgeny Grin (Karlson2k)
3d75094b41
test_digestauth2: added testing of 'userdigest'
2022-07-30 22:28:43 +03:00
Evgeny Grin (Karlson2k)
0b70234172
test_digestauth2: test the new option
2022-07-30 22:28:43 +03:00
Evgeny Grin (Karlson2k)
3213c703dd
daemon.c: changed fill value for unused members
2022-07-30 22:28:43 +03:00
Evgeny Grin (Karlson2k)
0ecad853ed
Added new MHD_OPTION_DIGEST_AUTH_RANDOM_COPY option
2022-07-30 22:28:43 +03:00
Evgeny Grin (Karlson2k)
653376caa5
microhttpd: improved description for MHD_OPTION_DIGEST_AUTH_RANDOM
2022-07-30 22:28:43 +03:00
Evgeny Grin (Karlson2k)
c3b626ed22
microhttpd: improved description for MHD_OPTION_NONCE_NC_SIZE
2022-07-30 22:28:42 +03:00
Evgeny Grin (Karlson2k)
41dfd74cd4
configure: control more parameters with 'build-type'
2022-07-30 22:28:42 +03:00
Evgeny Grin (Karlson2k)
3f583074e6
configure: report in summary whether static and shared version will be built
2022-07-30 22:28:42 +03:00
Evgeny Grin (Karlson2k)
d1b181d4dc
configure: cosmetics
2022-07-30 22:28:42 +03:00
Evgeny Grin (Karlson2k)
5aa16f7e31
digestauth: added dynamic detection and use of the algo specified by client
2022-07-30 22:28:41 +03:00
Christian Grothoff
9eb7b4de64
-fix typos
2022-07-28 22:05:12 +02:00
Evgeny Grin (Karlson2k)
2949c070e6
Makefile: cosmetics
2022-07-28 07:21:37 +03:00
Evgeny Grin (Karlson2k)
a64c96c497
MHD_FEATURE_*: added some values related to Digest Auth
2022-07-28 07:21:37 +03:00
Evgeny Grin (Karlson2k)
2fd1a01fe0
test_digestauth2: added new group of tests for Digest Auth checking
2022-07-28 07:21:36 +03:00
Evgeny Grin (Karlson2k)
c03c57c9d2
Added MHD_queue_auth_required_response3(); Refactored public Digest Auth API v3
...
Added brand new function with more complete support for RFC 7616
features. New function implemented from scratch. Old functions became
wrappers for the new function, so fixes are inherited.
Fixes:
* All user values are properly quoted
Features:
* Added support for optional 'domain' Digest auth parameter
* Realm now optional
* Added userhash support
* Added charset support
For other Digest Auth v3 functions:
* Added more parameters for complete control of Auth process from
application side.
2022-07-28 07:21:35 +03:00
Evgeny Grin (Karlson2k)
4baec145d4
Digest Auth public structs: removed redundant member
...
Added one more check for data validity.
2022-07-28 07:21:33 +03:00
Evgeny Grin (Karlson2k)
13db035fc9
MHD_add_response_entry(): refactoring + added internal function
2022-07-28 07:21:33 +03:00
Evgeny Grin (Karlson2k)
012a2d3bb1
Updated Digest Auth enums in the header
2022-07-28 07:21:33 +03:00
Evgeny Grin (Karlson2k)
0194db857c
test_digestauth_concurrent: fixed compiler warnings
2022-07-25 16:20:50 +03:00
Evgeny Grin (Karlson2k)
99c44002a9
tests_digestauth*: added workarounds for libcurl bug
2022-07-25 16:20:50 +03:00
Evgeny Grin (Karlson2k)
aa49d6053c
test_digestauth_emu_ext: cosmetics, additional check
2022-07-25 16:20:50 +03:00
Evgeny Grin (Karlson2k)
5da848a157
test_digestauth{,_sha256,_with_aguments}: moved back to Digest Auth APIv2
...
Fixed compiler warnings
2022-07-25 16:20:49 +03:00
Evgeny Grin (Karlson2k)
50828ba77d
digestauth: term correction in comment
2022-07-25 16:20:49 +03:00
Evgeny Grin (Karlson2k)
5866b68fa7
Updated doxy for old Digest Auth API function
...
This function supports new functionality now (extended notation) and
this functionality is automatically available without rebuilding
application.
2022-07-25 16:20:49 +03:00
Evgeny Grin (Karlson2k)
961635da2a
digest_auth_check(): added check for too large realm value
2022-07-25 16:20:49 +03:00
Evgeny Grin (Karlson2k)
7e5206cc03
digest_auth_check(): added support for userhash
2022-07-25 16:20:48 +03:00