Commit Graph
315 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) e583a3430f websocket_threaded_example: fixed sprintf() usage, compiler warnings 2022-06-02 17:03:31 +03:00
Evgeny Grin (Karlson2k) 8da7be3b7b examples: marked non-global variables as 'static' 2022-06-02 09:07:48 +03:00
Evgeny Grin (Karlson2k) badf75607b http_chunked_compression: fixed errors 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 5821a7f303 src/examples/demo{,_https}: added some error checking, fixed compiler warnings 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 0e829bf21b src/examples/benchmark{,_https}: simplified time calculation 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) aefa12e99a src/examples/*fileserver*.c: added error checking 2022-06-01 22:12:38 +03:00
Evgeny Grin (Karlson2k) 93dcf8ea91 src/examples: muted compiler warnings 2022-06-01 22:12:37 +03:00
Evgeny Grin (Karlson2k) 2ec6b3c7c9 Use '#ifdef PARAM' instead of '#if PARAM' for configuration options 2022-05-16 19:46:30 +03:00
Evgeny Grin (Karlson2k) 85ae657849 Replaced MHD_RESPMEM_PERSISTENT usage in examples and code
New functions do not produce compiler warnings.
2022-05-14 15:07:47 +03:00
Evgeny Grin (Karlson2k) a13647d1d0 Replaced MHD_RESPMEM_MUST_FREE with more portable solution in examples 2022-05-14 14:37:02 +03:00
Evgeny Grin (Karlson2k) 001b6b87fd Updated example to use new digest auth function 2022-05-13 17:22:28 +03:00
Evgeny Grin (Karlson2k) ba77b04c65 Replaced calls of MHD_get_timeout() in tests and examples
The calls were replaced with the calls of the new functions.
Completely removed the usage of MHD_UNSIGNED_LONG_LONG.
2022-04-28 19:06:46 +03:00
Evgeny Grin (Karlson2k) d1c74589fb src/examples: fixed printf format specifiers 2022-04-23 15:25:50 +03:00
Evgeny Grin (Karlson2k) 0fa1c67543 websocket_threaded_example: mark function as static 2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k) 351d8a65d6 Fixed old-style functions definitions 2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k) dde8624f97 Updated test TLS certificate in test and examples
The new certificate should be a bit more similar to production certs.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k) 85775e29a9 src/examples: Fixed drop of 'const' qualifiers and minor fixes.
* some minor fixes and improvements.
2022-04-19 20:27:37 +03:00
Evgeny Grin (Karlson2k) 1a7e4a5a5b Updated docs, test, and example to use correct digest auth API 2022-01-27 19:13:37 +03:00
Evgeny Grin (Karlson2k) 6ed5b52d3e Fixed early response with digest auth in tests, examples, and documentation 2022-01-18 15:56:09 +03:00
Evgeny Grin (Karlson2k) bd41946e8f Renamed 'con_cls' -> 'req_cls' for access handler callback
The argument is actually request-specific, not connection specific. The
name was confusing.
Fixed related documentation and clarified usage.

Also fixed code where argument named 'unused' was actually used.
2022-01-18 15:18:40 +03:00
Evgeny Grin (Karlson2k) cbd62cc2d3 Autotools refactoring: better follow GNU coding standards
Never override CFLAGS, CPPFLAGS, and LDFLAGS in 'configure'.
Let user override compile setting as make-time almost in the same way
like at configure-time.

Removed some redundant compile settings.
2022-01-06 19:05:41 +03:00
Evgeny Grin (Karlson2k) 32a10057ec Workarounds for uncrustify bugs 2021-12-09 13:51:49 +03:00
Evgeny Grin (Karlson2k) 8d50b03251 Revert formatting broken by uncrustify
This partially reverts commit dbe1d76d9c.

Looks like uncrustify has some bug resulting in C++ style comments
2021-12-09 13:33:50 +03:00
Christian Grothoff dbe1d76d9c -fix tests for libmagic (and uncrustify indentation) 2021-12-08 14:11:31 +01:00
Evgeny Grin (Karlson2k) 280fb849e0 Minor readability improvements 2021-12-01 15:05:56 +03:00
Evgeny Grin (Karlson2k) 2a412f8887 tests and examples: fixed copy-paste errors in doxy 2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k) 87ab1ec7f7 test and examples: check socket control functions results 2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k) 0b9d6e9446 Examples: fixed blocking sockets on W32
Sockets on W32 were non-blocking due to copy-paste errors.
2021-11-21 15:43:13 +03:00
Evgeny Grin (Karlson2k) f44e4bf896 websockets: fixed code style 2021-10-31 16:34:49 +03:00
David Gausmann ddad59c1e3 websocket update
- added API documentation to libmicrohttpd.texi
- added websocket tutorial chapter to libmicrohttpd-tutorial and an much easier example for the tutorial
- added additional helper functions to ease the HTTP websocket handshake
- the code can now be compiled on Linux without errors
- changed sha1.c and sha1.h to the files provided by Evgeny (I replaced those files in src/microhttpd_ws/ with the files from src/microhttpd/ - maybe there is a smarter way...?)
- removed dependency for "htons" and "htonl" (these functions are now implemented in MHD_websocket.c; no need for OS-dependent files anymore)
- added an additional test script for testing of the library with any webbrowser (for manual practice test)
- several bugfixes
- parameters renamed
- special things clarified (fragmentation, RNG for client mode)

The new version of the API is at some points incompatible with the old version, but since it was in an experimental phase and it didn't compile on Linux, I guess this shouldn't bother anyone.
From my point of view, I am now finished with the library and it could go out of experimental.
2021-10-31 16:02:31 +03:00
Evgeny Grin (Karlson2k) 18c2ad66c7 websocket_threaded_example: fixed compiler warning on x32 platforms 2021-10-24 11:24:07 +03:00
Evgeny Grin (Karlson2k) 1a17440608 Muted sanitizer errors on W32 platform.
Actually MinGW headers need to be fixed.
2021-10-06 11:30:42 +03:00
Evgeny Grin (Karlson2k) acc4cc29ed Cosmetics: fixed formatting for 'examples' 2021-09-17 11:54:58 +03:00
Evgeny Grin (Karlson2k) bf1993237a Use type specifiers for printf() from inttypes.h
This should improve compatibility with various C libs.
2021-09-17 11:53:55 +03:00
Evgeny Grin (Karlson2k) 09c4a22975 websocket_threaded_example: fix static analyzer error 2021-08-25 20:50:07 +03:00
Evgeny Grin (Karlson2k) 46c0d3f470 querystring_example: free memory with new error check 2021-08-25 20:33:51 +03:00
Evgeny Grin (Karlson2k) 5feee053a2 querystring_example: fixed compiler warning, added error checking 2021-08-25 19:40:43 +03:00
Evgeny Grin (Karlson2k) 533d5cecd4 chunked_example: fixed resource leak 2021-06-03 21:30:11 +03:00
Evgeny Grin (Karlson2k) 81bbdc7048 chunked_example: enforce to use chunked encoding
Previously MHD switches to identity encoding if connection
is not Keep-Alive
2021-05-06 11:26:34 +03:00
Christian Grothoff 5a5e402b11 fix typos 2021-04-27 23:31:58 +02:00
Christian Grothoff 450b868804 add David's WS example 2021-04-26 14:33:55 +02:00
Evgeny Grin (Karlson2k) 7d5e06ed5f Updated test certificates
Updated TLS test certificates with modern algorithms and correct
alternative names, which is closer to real live scenarios.
Examples programs work with browsers again.
2021-04-11 12:38:48 +03:00
Evgeny Grin (Karlson2k) 81beb04105 websocket_threaded_example: muted compiler warning 2021-04-01 21:33:47 +03:00
Evgeny Grin (Karlson2k) 2da6d2d800 Fixed analyzer warning 2020-12-27 20:10:32 +03:00
Evgeny Grin (Karlson2k) f53db2892e Muted compiler warnings 2020-12-27 17:35:49 +03:00
Evgeny Grin (Karlson2k) 1d5efc0349 Examples: fixed logic error 2020-12-25 20:17:59 +03:00
Evgeny Grin (Karlson2k) fb283746eb examples: fixed portability and compiler warnings 2020-12-24 15:35:25 +03:00
Evgeny Grin (Karlson2k) 5c659994bf examples: fixed wrong array initialisation 2020-12-24 15:27:55 +03:00
Evgeny Grin (Karlson2k) a3b6d06f32 Fix for ee18f2421a 2020-10-29 19:26:23 +03:00
Evgeny Grin (Karlson2k) ee18f2421a Fixed 2f4438ab7a 2020-10-29 18:59:25 +03:00