Commit Graph
4880 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 0531511f18 Editorial doxy improvements 2022-09-05 18:03:09 +03:00
Evgeny Grin (Karlson2k) c3680cb737 Digest Auth API: do not store 'userhash' in 'username' members
While the 'username' is used to carry 'userhash' in headers, it is
confusing as 'userhash' type of the data is different from type of
the 'username'. To make a clear distinction, use dedicated members
to store 'userhash'.
2022-09-05 14:53:05 +03:00
Evgeny Grin (Karlson2k) 2699d27820 .gitignore: added universal patter to ignore test binaries 2022-09-04 14:43:03 +03:00
Evgeny Grin (Karlson2k) 0130c23c28 test_digestauth2: removed copy-paste leftovers 2022-09-04 12:37:02 +03:00
Evgeny Grin (Karlson2k) 87fe3bdd88 Added tests for userdigest and userhash calculations 2022-09-04 12:37:01 +03:00
Evgeny Grin (Karlson2k) 62175acf7c Added MHD_FEATURE_DIGEST_AUTH_SHA512_256 value 2022-09-04 12:25:18 +03:00
Evgeny Grin (Karlson2k) e3e01bd7c3 microhttpd.h: fixed typos in comments 2022-09-04 12:25:18 +03:00
Evgeny Grin (Karlson2k) 0ccef4c16c Added new public functions for userhash and userdigest calculations
These functions can be used when the new user is added to the users
database.
2022-09-04 12:25:06 +03:00
Evgeny Grin (Karlson2k) 2a9071b862 Modified public Digest Username struct to include the algorithm 2022-08-26 09:42:13 +03:00
Evgeny Grin (Karlson2k) e5d0b31486 microhttpd.h: Fixed missing version bump 2022-08-26 09:02:52 +03:00
Evgeny Grin (Karlson2k) a291640066 digestauth: keep results of algo and QOP parsing, renamed public struct member 2022-08-25 20:04:47 +03:00
Evgeny Grin (Karlson2k) 5e5efd9279 microhttpd.h: doxy and other minor improvements 2022-08-25 20:03:53 +03:00
Evgeny Grin (Karlson2k) 6bdb28d9a6 gen_auth: fixed fail on semicolon in parameter value 2022-08-25 20:03:53 +03:00
Evgeny Grin (Karlson2k) ac05e45177 gen_auth: fixed usage of 'assert()' 2022-08-24 08:37:54 +03:00
Evgeny Grin (Karlson2k) badb7c8fc9 microhttpd: small doxy correction 2022-08-17 08:11:51 +03:00
Evgeny Grin (Karlson2k) 0408d14434 digestauth: removed unused static function 2022-08-16 15:17:24 +03:00
Evgeny Grin (Karlson2k) 774219b75a digestauth: fixed panic log message 2022-08-16 15:16:54 +03:00
Evgeny Grin (Karlson2k) 83f50ffcea digestauth: minor doxy correction for public API 2022-08-16 10:20:11 +03:00
Evgeny Grin (Karlson2k) b7e0c47e23 daemon: added missing cast, fixed regression introduced by 25863e1c89 2022-08-16 10:17:57 +03:00
Evgeny Grin (Karlson2k) c63be03c7a calculate_nonce(): added comments, minor code corrections 2022-08-15 21:37:51 +03:00
Evgeny Grin (Karlson2k) 21d8f5461b digestauth: updated the method of nonce generation in default mode 2022-08-15 21:37:51 +03:00
Evgeny Grin (Karlson2k) e1d6b7635b test_digestauth_concurrent: added debug print 2022-08-15 21:37:51 +03:00
Evgeny Grin (Karlson2k) 451b0d9f24 digestauth: minor comment correction 2022-08-15 21:37:50 +03:00
Evgeny Grin (Karlson2k) e16789ef4f test_digestauth2: minor improvements 2022-08-15 21:37:50 +03:00
Evgeny Grin (Karlson2k) da62262d98 test_digestauth2: added third request with new connection 2022-08-15 21:37:50 +03:00
Evgeny Grin (Karlson2k) 8a210d2885 test_digestauth2: reuse the same connection for the second request 2022-08-15 21:37:50 +03:00
Evgeny Grin (Karlson2k) e4092f1d54 test_digestauth2: added testing of nonce bind options 2022-08-15 21:37:49 +03:00
Evgeny Grin (Karlson2k) 63c6f68b5d test_digestauth2: added testing with two requests
Second request should test additional code paths
2022-08-15 17:34:13 +03:00
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