Christian Grothoff
a5dbfbbd69
avoid malloc in CustomSetters
2024-06-11 14:50:35 +02:00
Christian Grothoff
e5d6647003
fixmes
2024-06-11 14:15:40 +02:00
Christian Grothoff
c8a3beb19e
fix comment
2024-06-11 14:03:56 +02:00
Christian Grothoff
c87b0028b5
fix indent
2024-06-11 14:01:43 +02:00
Christian Grothoff
67de5eaf8b
check ptr
2024-06-11 14:01:11 +02:00
Christian Grothoff
e6f179ca06
fix default
2024-06-11 13:51:05 +02:00
Christian Grothoff
6796ab3a26
more MHD_socket fixes
2024-06-11 13:38:30 +02:00
Christian Grothoff
3b1b0c442d
fix typos
2024-06-11 13:35:47 +02:00
Christian Grothoff
276df1d0c5
selective include
2024-06-11 13:29:53 +02:00
Christian Grothoff
615c2dd064
-fix generation to match latest code
2024-06-10 00:24:39 +02:00
Christian Grothoff
6646ce83fe
remove dependency on recutils and libjansson
2024-04-13 18:22:00 +02:00
Christian Grothoff
2a543d5b9b
add response option generation;
2024-04-12 20:10:57 +02:00
Christian Grothoff
c5e017f1bd
stash
2024-04-12 13:08:41 +02:00
Christian Grothoff
799be23549
generator v1
2024-04-11 20:35:22 +02:00
Christian Grothoff
57c4e589e5
say it is STF-funded
2024-04-09 11:02:36 +02:00
Christian Grothoff
6c0c3a81eb
-fix config
2024-04-09 10:55:02 +02:00
Christian Grothoff
417ad2deab
spellcheck
2024-04-09 10:51:25 +02:00
Christian Grothoff
6326efdd96
add version check to uncrustify hook
2024-04-08 21:15:31 +02:00
Christian Grothoff
07a8872e11
-fix _some_ compiler errors
2024-04-08 21:00:32 +02:00
Christian Grothoff
30e8a165ae
english fixes
2024-04-08 16:15:28 +02:00
Christian Grothoff
d9b69bbc74
fix misc issues, largely documentation
2024-04-08 12:07:56 +02:00
Christian Grothoff
831b49287b
add example
2024-04-07 19:21:29 +02:00
Christian Grothoff
0dc6a309ea
wip
2024-04-07 19:09:23 +02:00
Christian Grothoff
9a0bcc53f1
mark script executable
2024-04-05 00:42:37 +02:00
Christian Grothoff
9b8746a435
report on m1
2024-03-27 23:02:07 +01:00
Christian Grothoff
6543066b5d
edits
2024-03-03 16:09:55 +01:00
Christian Grothoff
9b4ae828ad
edits
2024-03-03 15:42:08 +01:00
Christian Grothoff
cc2f46ef18
-example
2024-03-03 15:20:39 +01:00
Christian Grothoff
8d5c2b22f3
-whitespace and indentation changes only
2024-02-27 18:23:59 +01:00
Christian Grothoff
3eb2a7fdea
-remove trailing whitespace, update PO file, no semantic change(s)
2024-02-05 09:21:06 +01:00
Christian Grothoff
1cd1059854
fix #8012
2024-02-05 09:17:20 +01:00
Christian Grothoff
8c57d3eb67
fix memory leak on error path
2024-02-05 09:17:20 +01:00
Christian Grothoff
ecc4a7acc3
clean up logic, simplify one dead branch in test
2024-02-05 09:17:20 +01:00
Christian Grothoff
87b3cce637
use correct HTTP header (content type, not content encoding) for mime type in example; do check return value in example
2024-02-05 09:17:19 +01:00
Christian Grothoff
9928d05868
add missing lock, do not call 'close(-1)' on very rare error path
2024-02-05 09:17:12 +01:00
Christian Grothoff
93a333ac70
small typo likely from copy&paste causing macro names to be different
...
between builds with and without messages resulting in compilation
failure if configured with --disable-messages
Signed-off-by: Jan Palus <jpalus@fastmail.com >
2024-02-04 18:28:44 +01:00
Christian Grothoff
16b8d9432c
header work
2024-02-02 15:13:25 +01:00
Christian Grothoff
91c95a1c8c
checkpointing
2024-01-20 17:26:29 +01:00
Christian Grothoff
ce9a71e8c1
checkpointing
2024-01-20 12:56:03 +01:00
Christian Grothoff
c9cdfe8ca7
first edits
2024-01-19 21:43:22 +01:00
Christian Grothoff
639435c215
notes on MHD2 API
2024-01-19 20:13:23 +01:00
Christian Grothoff
9c032ccca7
Revert "-add support for ICECAST-style uploads"
...
This reverts commit 19e1ed8355 .
2023-09-26 11:58:44 +02:00
Christian Grothoff
4a031e5482
-fix theoretical use-after-free in test on error path
2023-09-25 21:52:48 +02:00
Christian Grothoff
64d90a1a85
-tighten test further
2023-09-25 21:49:57 +02:00
Christian Grothoff
5083df300e
fix check order
2023-09-25 21:41:10 +02:00
Christian Grothoff
0ae494028b
check rvalues from MHD_post_process in examples
2023-09-25 21:38:23 +02:00
Christian Grothoff
138ee33a41
check rvalues from MHD_add_response_header in examples
2023-09-25 21:31:59 +02:00
Christian Grothoff
9327a8cc46
check rvalues from MHD_add_response_header in examples
2023-09-25 21:30:03 +02:00
Christian Grothoff
2212a37256
check rvalues from pthread_mutex_ operations in examples
2023-09-25 21:26:31 +02:00
Christian Grothoff
e42c783bb8
-very theoretically, 0 would be OK, too
2023-09-25 21:13:17 +02:00
Christian Grothoff
19e1ed8355
-add support for ICECAST-style uploads
2023-09-25 20:32:53 +02:00
Christian Grothoff
d011008332
-typos
2023-07-10 19:47:02 +02:00
Christian Grothoff
dc1973a702
-typos
2023-06-03 12:58:55 +02:00
Christian Grothoff
84f3cde452
-typo
2023-05-13 22:04:56 +02:00
Christian Grothoff
eeb4166266
-fix bogus assert, use proper libgcrypt type
2023-04-17 10:55:22 +02:00
Christian Grothoff
46357a33c1
-fix typos
2023-04-10 23:32:49 +02:00
Christian Grothoff
e8118a6fca
-typo
2023-02-27 16:54:17 +01:00
Christian Grothoff
6d6846e20b
fix parser bug that could be used to crash servers using the MHD_PostProcessor
2023-02-26 17:51:39 +01:00
Christian Grothoff
08f933a6ad
epoll: immediately notice when other side closes the socket, instead of waiting for timeout ( fixes #7192 )
2023-02-08 15:26:19 +01:00
Christian Grothoff
4627d005d2
add assertion to guard against bad behavior described in #7196 , also document that after suspending one must return MHD_YES
2023-02-08 14:28:49 +01:00
Christian Grothoff
b85d48cd95
-support mime-types by file extension in demo.c
2022-10-28 15:20:38 +02: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
Christian Grothoff
9eb7b4de64
-fix typos
2022-07-28 22:05:12 +02:00
Christian Grothoff
bd88a19e2d
-typo
2022-07-20 21:04:25 +02:00
Christian Grothoff
d629ada1a2
-fix typos
2022-06-26 15:24:24 +02:00
Christian Grothoff
4195c246bb
-more minor fixes
2022-06-07 18:01:13 +02:00
Christian Grothoff
b627fdaf25
-fix read-only off-by one in 'if ( (0 != memcmp (nn->nonce, nonce, noncelen)) ||
...
772 (0 != nn->nonce[noncelen]) )' by making buffer one element larger
2022-06-07 17:57:26 +02:00
Christian Grothoff
711099c7ea
unsure why this was left as a TODO, fix seems trivial (EG: please check)
2022-06-07 17:41:54 +02:00
Christian Grothoff
82abaee62f
-minor cleanups
2022-06-07 17:40:28 +02:00
Christian Grothoff
4720ace1a7
-fix memory leaks in tests
2022-06-07 17:29:24 +02:00
Christian Grothoff
a940c3ba58
-fix warning
2022-06-06 20:41:10 +02:00
Christian Grothoff
06819f2e89
-indentation fix
2022-04-04 07:47:32 +02:00
Christian Grothoff
899e26205a
fix capitalization of SHA-256 / MD5 as per RFC 7616 as reported on the mailinglist by Ahmet Kermen
2022-01-17 10:51:08 +01:00
Christian Grothoff
dbe1d76d9c
-fix tests for libmagic (and uncrustify indentation)
2021-12-08 14:11:31 +01:00
Christian Grothoff
bd3325c924
-fix typo
2021-09-16 17:53:25 +02:00
Christian Grothoff
fdfd5dc80f
tbrehm@dspace.de wrote:
...
Hi,
gcc10 complains with two warnings when compiling libmicrohttpd using
#define NDEBUG 1
#define DAUTH_SUPPORT 1
so, "release build" with enabled "digest authentication":
../digestauth.c: In function 'MHD_digest_auth_check_digest2':
../digestauth.c:1287:9: warning: 'da.digest_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
1287 | if (da.digest_size != digest_size)
| ~~^~~~~~~~~~~~
../digestauth.c: In function 'MHD_queue_auth_fail_response2':
../digestauth.c:1361:55: warning: 'da.digest_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
1361 | char nonce[NONCE_STD_LEN (VLA_ARRAY_LEN_DIGEST (da.digest_size)) + 1];
|
This is a minor issue, without any practical effect, unless when calling the MHD API with an invalid value for the MHD_DigestAuthAlgorithm enum.
However, gcc is still right that there is a potential code path with undefined behaviour: the default-case in the switch statement in SETUP_DA does not set "da.digest_size".
Two functions later still always read this value. And the "mhd_assert" has no effect, since it's disabled when NDEBUG is set.
Trivial patch attached to silence the compiler warnings by also initializing "da.digest_size" in the default case of the switch statement:
2021-09-03 13:31:05 +02:00
Christian Grothoff
0920a1f908
-fix typo
2021-09-01 18:23:40 +02:00
Christian Grothoff
79868fab86
-typo
2021-08-24 15:17:01 +02:00
Christian Grothoff
067628c6f7
-fix typo
2021-08-21 14:11:02 +02:00
Christian Grothoff
ebd43f0373
-bump version
2021-08-18 11:10:42 +02:00
Christian Grothoff
d929a44741
-typo
2021-08-04 19:07:27 +02:00
Christian Grothoff
f1f8851cd2
introduce new MHD_CONNECTION_INFO_HTTP_STATUS
2021-08-04 18:58:55 +02:00
Christian Grothoff
ecf9dbb690
-fix typo
2021-07-18 13:52:12 +02:00
Christian Grothoff
41a3f2398a
-make spell checker happy
2021-07-14 14:37:16 +02:00
Christian Grothoff
3569c42c4c
-more work for JE Marchesi
2021-05-02 12:34:05 +02:00
Christian Grothoff
5a5e402b11
fix typos
2021-04-27 23:31:58 +02:00
Christian Grothoff
8ee4e54f4f
fix typos
2021-04-27 23:23:00 +02:00
Christian Grothoff
67c79a9cd1
fix typos
2021-04-27 23:22:31 +02:00
Christian Grothoff
26b082a6b4
-fix typo
2021-04-26 17:14:46 +02:00
Christian Grothoff
450b868804
add David's WS example
2021-04-26 14:33:55 +02:00
Christian Grothoff
c488cadbc1
verbatim import of David Gausmann's websocket extension; tests do not yet pass, only enabled with --enable-experimental
2021-04-26 14:12:23 +02:00
Christian Grothoff
7241cb611a
-fix typos
2021-04-24 00:05:37 +02:00
Christian Grothoff
6c751386a2
fix #6768 : do not use TCP-specific syscalls on UNIX domain sockets (merge)
2021-04-16 10:26:20 +02:00
Christian Grothoff
55e6a9e275
fix typo
2021-03-09 23:36:39 +01:00
Christian Grothoff
f9aa18c17e
fix example
2021-03-04 13:32:39 +01:00
Christian Grothoff
b5c7519d9a
improve example on client cert validation, as suggested by Folkert van Heusden
2021-03-02 15:40:49 +01:00
Christian Grothoff
8093de995c
remove unnecessary grouping/paren/nesting
2021-02-27 21:19:37 +01:00
Christian Grothoff
39813f4f28
fix leak
2021-02-27 21:04:09 +01:00
Christian Grothoff
6b3d0c27b7
simplify
2021-02-27 20:57:33 +01:00