Evgeny Grin (Karlson2k)
351d8a65d6
Fixed old-style functions definitions
2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k)
33b4a2d997
autoinit_funcs.h: improved formatting
2022-04-23 15:21:19 +03:00
Evgeny Grin (Karlson2k)
f80da0ba6f
autoinit_funcs.h: added functions prototypes
2022-04-23 15:21:18 +03:00
Evgeny Grin (Karlson2k)
a263d605ff
daemon.c: added prototypes for non-static functions
2022-04-23 15:21:18 +03:00
Evgeny Grin (Karlson2k)
48d7bc547d
MHD_start_daemon: simplified logic for AUTO flags
...
Avoid "duplicated branches" on some platforms
2022-04-23 15:21:18 +03:00
Evgeny Grin (Karlson2k)
a3ce7049bd
test_https_sni: limit to libcrul with certain TLS backends.
...
NSS can't be used with SSL_VERIFYPEER disabled, while SSL_VERIFYHOST is
enabled, other backends may have some problems as well.
2022-04-21 13:40:10 +03:00
Evgeny Grin (Karlson2k)
fc649c7bf3
test_https_sni: use CA certificate
...
Still disabled in the test itself, but it should not hurt to give
the proper CA if it is available.
2022-04-21 13:40:09 +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)
38f60de83d
test_https_sni: use certificates with SAN fields
...
While host in CommonName (CN) is still should be supported, it is
recommended to use SubjectAltName to identify the host.
This also workarounds the bug in libcurl 7.82.0 with certificates
processing.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k)
166b572354
Use HTTP/1.1 for all TLS tests
...
Nobody is using HTTP/1.0 with TLS
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k)
671ad58593
Updated .gitattributes
...
Always use LF line endings for *.key, *.crt, and *.pem.
2022-04-21 13:40:09 +03:00
Evgeny Grin (Karlson2k)
4b6419b1f3
doc/examples: Fixed drop of 'const' qualifiers
2022-04-19 20:27:37 +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)
81daa705ca
microhttpd.h: minor doxy improvement
2022-04-19 20:27:36 +03:00
Evgeny Grin (Karlson2k)
43cca25d44
Added new API function MHD_create_response_from_buffer_copy()
2022-04-19 20:27:36 +03:00
Evgeny Grin (Karlson2k)
ae4fcbad73
Minor simplification for ALPN protocols code
2022-04-19 18:55:27 +03:00
Evgeny Grin (Karlson2k)
b6eb14d646
Added workaround for external APIs
...
Some APIs require non-const pointer even when data is supposed to be
unmodifiable. Added workaround to deal with such APIs without compiler
warnings.
2022-04-19 18:55:27 +03:00
Evgeny Grin (Karlson2k)
57cc8b7113
Fixed missing 'const' qualifiers
2022-04-19 18:55:27 +03:00
Evgeny Grin (Karlson2k)
df5b770e21
Fixed drop of 'const' when building internal error response
2022-04-19 18:55:27 +03:00
Evgeny Grin (Karlson2k)
d3ae3c432d
Added new API function MHD_create_response_from_buffer_static()
2022-04-19 18:55:26 +03:00
Evgeny Grin (Karlson2k)
f71019f00b
MHD_get_version(): fixed signed value bit shift
2022-04-18 11:18:04 +03:00
Evgeny Grin (Karlson2k)
b0a2a0add1
microhttpd.h: removed empty line
2022-04-18 11:18:03 +03:00
Evgeny Grin (Karlson2k)
71633eb917
Refactored create response functions.
...
Moved away from the deprecated function, shortened typical call chain.
2022-04-18 11:18:03 +03:00
Evgeny Grin (Karlson2k)
1c11680120
Added _MHD_EXTERN to the all public functions definitions
...
Previously it was inconsistent, some function definitions used
_MHD_EXTERN, while other definitions was used without _MHD_EXTERN.
2022-04-18 11:18:03 +03:00
Evgeny Grin (Karlson2k)
4ff1024763
refactoring: use 'const' for response buffers
...
The response buffers shouldn't be modifiable.
2022-04-18 11:18:02 +03:00
Evgeny Grin (Karlson2k)
03c29b63e0
configure: improved usage of 'pie' mode for hardening
2022-04-17 18:34:17 +03:00
Evgeny Grin (Karlson2k)
7570030f71
Configure: minor results print clarification
2022-04-17 16:17:44 +03:00
Evgeny Grin (Karlson2k)
1907cc2b1b
MHD_Connection: added 'const' qualifiers to some unmodifiable members
2022-04-17 15:24:38 +03:00
Evgeny Grin (Karlson2k)
36cf2f2d2a
connection: removed drop of 'const' qualifier
2022-04-17 15:24:38 +03:00
Evgeny Grin (Karlson2k)
2cef909cdd
test_postprocessor_amp: fixed code style
2022-04-17 15:24:37 +03:00
Evgeny Grin (Karlson2k)
3ebb982956
Refactoring: different types for response and request headers
...
Request headers are always read-only (const char *), while response
headers are modifiable. Should help with catching errors in code.
2022-04-17 15:24:37 +03:00
Evgeny Grin (Karlson2k)
e76fc7f8aa
daemon: muted compiler warning
2022-04-17 15:24:37 +03:00
Evgeny Grin (Karlson2k)
4e34b6a43a
configure: minor fix
...
Added quoting for string values.
2022-04-17 15:24:37 +03:00
Evgeny Grin (Karlson2k)
3c9f681e66
configure: fixed broken configure due to the missing value
2022-04-17 15:24:36 +03:00
Evgeny Grin (Karlson2k)
b908403e0d
configure: set minimal supported OS version in W32 binaries
2022-04-16 13:37:52 +03:00
Evgeny Grin (Karlson2k)
9b1865f691
configure: added --enable-build-type=TYPE
...
Useful to quickly define settings combination. Individual settings still
could be overridden by individual parameters.
Added autoconf macros for compiler and linker flags
2022-04-16 13:37:52 +03:00
Evgeny Grin (Karlson2k)
fff6d80c4b
Makefile: fixed dependency on libmicrohttpd.la
2022-04-16 13:37:51 +03:00
Evgeny Grin (Karlson2k)
27922699a8
Makefile: fixed: user LDFLAGS was not honored
2022-04-13 20:56:25 +03:00
Evgeny Grin (Karlson2k)
66f8a4b5c5
helper m4 macros: minor code simplification
2022-04-13 20:56:25 +03:00
Evgeny Grin (Karlson2k)
75125088d1
configure: further improved *FLAGS reporting
2022-04-13 20:56:25 +03:00
Rosen Penev
0498e99f7f
use ifdef for several HAVE header macros
...
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2022-04-04 07:49:52 +02:00
Christian Grothoff
06819f2e89
-indentation fix
2022-04-04 07:47:32 +02:00
Evgeny Grin (Karlson2k)
15e2a3a259
configure: netter format reporting for *FLAGS
2022-04-03 20:17:43 +03:00
Evgeny Grin (Karlson2k)
a3579e7061
Added two helper macros to manipulate *FLAGS vars
2022-04-03 20:17:43 +03:00
Evgeny Grin (Karlson2k)
29dfdc7cfb
configure: added final reporting for *FLAGS
2022-04-03 20:17:43 +03:00
Evgeny Grin (Karlson2k)
ccbeb19f76
Moved libtool-specific flags to Makefile
2022-04-03 20:17:43 +03:00
Evgeny Grin (Karlson2k)
54fa890e5b
configure: used more reliable test for -fvisibility
2022-04-03 20:17:43 +03:00
Evgeny Grin (Karlson2k)
82a26bfed2
Added autoconf macro for checking compiler parameters/flags
2022-04-03 20:17:42 +03:00
Evgeny Grin (Karlson2k)
a0c836e668
configure: added workaround for problematic formating tools
2022-04-03 20:17:42 +03:00
Evgeny Grin (Karlson2k)
203f6b604e
mhd_check_func.m4: fixed macro
...
Previously macro failed with comma-delimited and quoted parameters
2022-04-03 20:17:42 +03:00