Commit Graph
4924 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 4adc14c948 Some readability improvements 2022-09-28 11:46:59 +03:00
Evgeny Grin (Karlson2k) 13e217f5c2 Added workarounds for clang with W32 and MinGW incorrect headers 2022-09-28 10:46:20 +03:00
Evgeny Grin (Karlson2k) 6933158a95 muted some compiler warnings for clang 2022-09-28 10:39:32 +03:00
Evgeny Grin (Karlson2k) 4153c1cd4c mhd_str: minor refactoring for compact code 2022-09-27 20:36:56 +03:00
Evgeny Grin (Karlson2k) 3cd8296544 mhd_str: fixed compiler warning for compact code 2022-09-27 20:24:24 +03:00
Evgeny Grin (Karlson2k) 889b74b68e connection.c: removed unused check for chunked replies 2022-09-27 17:40:03 +03:00
Evgeny Grin (Karlson2k) 75d3852122 connection.c: added asserts for connection's states processing logic 2022-09-27 17:39:21 +03:00
Evgeny Grin (Karlson2k) dd5b0d6407 connection.c: fixed typo in comment 2022-09-27 17:27:40 +03:00
Evgeny Grin (Karlson2k) 3a7126a3e2 Removed one debug member from release builds 2022-09-27 17:26:19 +03:00
Evgeny Grin (Karlson2k) b997229143 Renamed request processing states for clarity and readability 2022-09-27 17:25:02 +03:00
Evgeny Grin (Karlson2k) ad43f8663c configure: fixed typos in messages 2022-09-27 15:17:22 +03:00
Evgeny Grin (Karlson2k) 77303a4a26 test_head: new test-case for HEAD requests
HEAD requests are handled in a special way.
This handling must be tested.
2022-09-27 14:58:46 +03:00
Evgeny Grin (Karlson2k) ebb17e5da7 connection: skip no-op calling of body generation functions when response body is not used 2022-09-27 14:54:05 +03:00
Evgeny Grin (Karlson2k) db4d4cb4bd test-suite: sorted and fixed build flags 2022-09-27 14:51:32 +03:00
Evgeny Grin (Karlson2k) 14b7b4d3b1 w32: updated custom MHD_config.h file 2022-09-25 19:16:37 +03:00
Evgeny Grin (Karlson2k) b6dcf9d259 w32: sync projects with autotools 2022-09-25 18:40:50 +03:00
Evgeny Grin (Karlson2k) 172b0eeb45 Implemented support for hash calculation by GnuTLS lib functions 2022-09-25 18:40:50 +03:00
Evgeny Grin (Karlson2k) 281b22da0e digestauth: refactored hashing asserts 2022-09-25 18:39:44 +03:00
Evgeny Grin (Karlson2k) ebe7f8d26c digestauth: used weak pseudo-random generators to avoid nonces clashes
Added salt to produce more complicated numbers
2022-09-25 18:39:44 +03:00
Evgeny Grin (Karlson2k) f26b806199 digestauth: changed "slot used" detection logic 2022-09-25 18:39:44 +03:00
Evgeny Grin (Karlson2k) c51718523d digestauth: removed redundant check and report 2022-09-25 18:39:43 +03:00
Evgeny Grin (Karlson2k) eef2d639f6 test_{md5,sha{256,512_256}}: re-use of the context structure
The context structure declaration was moved outside the loops, it should
help to re-use the same memory area which may trigger more potential
bugs.
2022-09-25 18:39:43 +03:00
Evgeny Grin (Karlson2k) b50bed1269 sha{256,512_256}: improved performance of the first steps on BE arches 2022-09-25 18:39:43 +03:00
Evgeny Grin (Karlson2k) 0c9323a9e6 test_{md5,sha{256,512_256}}: added long test sequence 2022-09-25 18:39:43 +03:00
Evgeny Grin (Karlson2k) b6a36f824b test_md5: added more test sequences 2022-09-25 18:39:43 +03:00
Evgeny Grin (Karlson2k) cce6a8d7a7 test_sha{256,512_256}: minor fixes 2022-09-25 18:39:42 +03:00
Evgeny Grin (Karlson2k) 9a3067c30f test_{md5,sha256,sha512_256}: added more checks 2022-09-25 18:39:42 +03:00
Evgeny Grin (Karlson2k) 9e1fcbbf26 md5: added compact code version 2022-09-25 18:39:42 +03:00
Evgeny Grin (Karlson2k) f11a6dcede md5: improved performance of the first round on LE arches 2022-09-25 18:39:42 +03:00
Evgeny Grin (Karlson2k) 532debba7c md5: replaced public domain MD5 implementation with our own implementation 2022-09-25 18:39:41 +03:00
Evgeny Grin (Karlson2k) 98a0375260 sha512_256: additional trick for compacter code; doxy and comment fixes 2022-09-25 18:39:41 +03:00
Evgeny Grin (Karlson2k) eb26d6c9d3 sha256: implemented compact code version, similarly to SHA-512/256 2022-09-25 18:39:41 +03:00
Evgeny Grin (Karlson2k) 85a9092597 sha256: backported minor optimisations from SHA-512/256 2022-09-25 18:39:41 +03:00
Evgeny Grin (Karlson2k) 403f3b8e6a mhd_options: use standard _MHD_EXTERN if file used outside the library 2022-09-25 18:39:40 +03:00
Evgeny Grin (Karlson2k) de88268e73 mhd_locks.h: cosmetics 2022-09-25 18:39:40 +03:00
Evgeny Grin (Karlson2k) 1e288041bd Fixed initialisation of old GnuTLS versions 2022-09-25 18:39:40 +03:00
Evgeny Grin (Karlson2k) 8815effe66 Fixed regression introduced by c3680cb737 2022-09-25 18:39:40 +03:00
Evgeny Grin (Karlson2k) 8318f56ebc digestauth: added support for SHA-512/256, made MD5 and SHA-256 optional
Give more flexibility for custom builds: MD5, SHA-256 and SHA-512/256
may be disabled individually.
2022-09-11 18:42:18 +03:00
Evgeny Grin (Karlson2k) 9fa5a3b990 test_dauth_user{digest,hash}: fixed copy-paste errors 2022-09-11 18:42:18 +03:00
Evgeny Grin (Karlson2k) 6cf8c2f33f Implemented SHA-512/256 hashing support
The full implementation, with support hashing of more than 2 EiB
(exbibytes), as described by specification.
Includes additional code path for more compact code.
2022-09-11 18:42:17 +03:00
Evgeny Grin (Karlson2k) 898550e1ae microhttpd.h: fixed typo in doxy 2022-09-11 18:41:36 +03:00
Evgeny Grin (Karlson2k) 30d2c2eea9 mhd_bithelpers: added more 64 bit manipulation functions/macros 2022-09-11 18:40:21 +03:00
Evgeny Grin (Karlson2k) 3432eaad2a mhd_bithelpers: Fixed typo in comment 2022-09-11 18:40:21 +03:00
Evgeny Grin (Karlson2k) 070947d809 configure: fixed underquoting, typos, wording 2022-09-11 18:40:21 +03:00
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