[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 131/335: Partial revert of 83205a8ab9f030408f8cb89c8cfa4
From: |
gnunet |
Subject: |
[libmicrohttpd] 131/335: Partial revert of 83205a8ab9f030408f8cb89c8cfa46196a5eef04. |
Date: |
Sat, 27 Jul 2024 22:00:27 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit 677125ba2b0037f309d1e0cdebf5e463b5339b88
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Apr 8 12:56:37 2024 +0200
Partial revert of 83205a8ab9f030408f8cb89c8cfa46196a5eef04.
---
src/include/microhttpd2.h | 178 +++++++++++++++++++++++-----------------------
1 file changed, 89 insertions(+), 89 deletions(-)
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
index a857a0a8..1a9144ad 100644
--- a/src/include/microhttpd2.h
+++ b/src/include/microhttpd2.h
@@ -568,7 +568,7 @@ typedef SOCKET MHD_socket;
_Pragma(MHD_MACRO_STR_(GCC diagnostic ignored MHD_MACRO_STR__(warn)))
# ifdef MHD_USE_VARARG_MACROS_EXT
# define MHD_NOWARN_VARIADIC_MACROS_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wvariadic - macros)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wvariadic-macros)
# define MHD_RESTORE_WARN_VARIADIC_MACROS_ MHD_WARN_POP_
# endif
# ifdef MHD_USE_COMPOUND_LITERALS_EXT
@@ -576,7 +576,7 @@ typedef SOCKET MHD_socket;
# define MHD_RESTORE_WARN_COMPOUND_LITERALS_ /* empty */
# endif
# define MHD_NOWARN_UNUSED_FUNC_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wunused - function)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wunused-function)
# define MHD_RESTORE_WARN_UNUSED_FUNC_ MHD_WARN_POP_
# elif MHD_CLANG_MINV (3,1)
# define MHD_WARN_PUSH_ _Pragma("clang diagnostic push")
@@ -585,27 +585,27 @@ typedef SOCKET MHD_socket;
_Pragma(MHD_MACRO_STR_(clang diagnostic ignored MHD_MACRO_STR__(warn)))
# ifdef MHD_USE_VARARG_MACROS_EXT
# define MHD_NOWARN_VARIADIC_MACROS_ \
- MHD_WARN_PUSH_ \
- MHD_WARN_INGORE_ (-Wvariadic - macros) \
- MHD_WARN_INGORE_ (-Wc++ 98 - compat - pedantic)
+ MHD_WARN_PUSH_ \
+ MHD_WARN_INGORE_(-Wvariadic-macros) \
+ MHD_WARN_INGORE_(-Wc++98-compat-pedantic)
# define MHD_RESTORE_WARN_VARIADIC_MACROS_ MHD_WARN_POP_
# else /* ! MHD_USE_VARARG_MACROS_EXT */
# define MHD_NOWARN_VARIADIC_MACROS_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wc++ 98 - compat - pedantic)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wc++98-compat-pedantic)
# define MHD_RESTORE_WARN_VARIADIC_MACROS_ MHD_WARN_POP_
# endif
# ifdef MHD_USE_CPP_INIT_LIST
# define MHD_NOWARN_CPP_INIT_LIST_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wc++ 98 - compat)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wc++98-compat)
# define MHD_RESTORE_WARN_CPP_INIT_LIST_ MHD_WARN_POP_
# endif
# ifdef MHD_USE_COMPOUND_LITERALS_EXT
# define MHD_NOWARN_COMPOUND_LITERALS_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wc99 - extensions)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wc99-extensions)
# define MHD_RESTORE_WARN_COMPOUND_LITERALS_ MHD_WARN_POP_
# endif
# define MHD_NOWARN_UNUSED_FUNC_ \
- MHD_WARN_PUSH_ MHD_WARN_INGORE_ (-Wunused - function)
+ MHD_WARN_PUSH_ MHD_WARN_INGORE_(-Wunused-function)
# define MHD_RESTORE_WARN_UNUSED_FUNC_ MHD_WARN_POP_
# elif MHD_MSC_MINV (1500)
# define MHD_WARN_PUSH_ __pragma(warning(push))
@@ -2622,49 +2622,49 @@ enum MHD_FIXED_ENUM_ MHD_FdState
* #MHD_process_watched_fds())
*/
MHD_FD_STATE_RECV = 1 << 0,
- /**
- * Indicates that socket should be watched for availability for sending
- * (when set by #MHD_get_watched_fds())
- * / socket has ability to send data (when used for
- * #MHD_process_watched_fds())
- */
- MHD_FD_STATE_SEND = 1 << 1,
- /**
- * Indicates that socket should be watched for disconnect, out-of-band
- * data available or high priority data available (when set by
- * #MHD_get_watched_fds())
- * / socket has been disconnected, has out-of-band data available or
- * has high priority data available (when used for
- * #MHD_process_watched_fds()). This status must not include "remote
- * peer shut down writing" status.
- * Note: #MHD_get_watched_fds() always set it as exceptions must be
- * always watched.
- */
- MHD_FD_STATE_EXCEPT = 1 << 2,
-
- /* The rest of the list is a bit-wise combination of three main
- * states. Application may use three main states directly as
- * a bit-mask instead of using of following values
- */
-
- /**
- * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_SEND states.
- */
- MHD_FD_STATE_RECV_SEND = MHD_FD_STATE_RECV | MHD_FD_STATE_SEND,
- /**
- * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_EXCEPT states.
- */
- MHD_FD_STATE_RECV_EXCEPT = MHD_FD_STATE_RECV | MHD_FD_STATE_EXCEPT,
- /**
- * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_EXCEPT states.
- */
- MHD_FD_STATE_SEND_EXCEPT = MHD_FD_STATE_RECV | MHD_FD_STATE_EXCEPT,
- /**
- * Combination of #MHD_FD_STATE_RECV, #MHD_FD_STATE_SEND and
- * #MHD_FD_STATE_EXCEPT states.
- */
- MHD_FD_STATE_RECV_SEND_EXCEPT = \
- MHD_FD_STATE_RECV | MHD_FD_STATE_SEND | MHD_FD_STATE_EXCEPT
+ /**
+ * Indicates that socket should be watched for availability for sending
+ * (when set by #MHD_get_watched_fds())
+ * / socket has ability to send data (when used for
+ * #MHD_process_watched_fds())
+ */
+ MHD_FD_STATE_SEND = 1 << 1,
+ /**
+ * Indicates that socket should be watched for disconnect, out-of-band
+ * data available or high priority data available (when set by
+ * #MHD_get_watched_fds())
+ * / socket has been disconnected, has out-of-band data available or
+ * has high priority data available (when used for
+ * #MHD_process_watched_fds()). This status must not include "remote
+ * peer shut down writing" status.
+ * Note: #MHD_get_watched_fds() always set it as exceptions must be
+ * always watched.
+ */
+ MHD_FD_STATE_EXCEPT = 1 << 2,
+
+ /* The rest of the list is a bit-wise combination of three main
+ * states. Application may use three main states directly as
+ * a bit-mask instead of using of following values
+ */
+
+ /**
+ * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_SEND states.
+ */
+ MHD_FD_STATE_RECV_SEND = MHD_FD_STATE_RECV | MHD_FD_STATE_SEND,
+ /**
+ * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_EXCEPT states.
+ */
+ MHD_FD_STATE_RECV_EXCEPT = MHD_FD_STATE_RECV | MHD_FD_STATE_EXCEPT,
+ /**
+ * Combination of #MHD_FD_STATE_RECV and #MHD_FD_STATE_EXCEPT states.
+ */
+ MHD_FD_STATE_SEND_EXCEPT = MHD_FD_STATE_RECV | MHD_FD_STATE_EXCEPT,
+ /**
+ * Combination of #MHD_FD_STATE_RECV, #MHD_FD_STATE_SEND and
+ * #MHD_FD_STATE_EXCEPT states.
+ */
+ MHD_FD_STATE_RECV_SEND_EXCEPT = \
+ MHD_FD_STATE_RECV | MHD_FD_STATE_SEND | MHD_FD_STATE_EXCEPT
};
/**
@@ -3498,34 +3498,34 @@ enum MHD_FIXED_FLAGS_ENUM_APP_SET_
MHD_DaemonOptionValueDAuthBindNonce
*/
MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_REALM = 1 << 0,
- /**
- * Generated nonces are valid only for the same URI (excluding parameters
- * after '?' in URI) and request method (GET, POST etc).
- * Not recommended unless "protection space" is limited to a single URI as
- * RFC 7616 allows clients to re-use server-generated nonces for any URI
- * in the same "protection space" which by default consists of all server
- * URIs.
- * Before #MHD_VERSION 0x00097701 this was default (and only supported)
- * nonce bind type.
- */
- MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_URI = 1 << 1,
-
- /**
- * Generated nonces are valid only for the same URI including URI
parameters
- * and request method (GET, POST etc).
- * This value implies #MHD_DAUTH_BIND_NONCE_URI.
- * Not recommended for that same reasons as #MHD_DAUTH_BIND_NONCE_URI.
- */
- MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_URI_PARAMS = 1 << 2,
-
- /**
- * Generated nonces are valid only for the single client's IP.
- * While it looks like security improvement, in practice the same client
may
- * jump from one IP to another (mobile or Wi-Fi handover, DHCP
re-assignment,
- * Multi-NAT, different proxy chain and other reasons), while IP address
- * spoofing could be used relatively easily.
- */
- MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_CLIENT_IP = 1 << 3
+ /**
+ * Generated nonces are valid only for the same URI (excluding parameters
+ * after '?' in URI) and request method (GET, POST etc).
+ * Not recommended unless "protection space" is limited to a single URI as
+ * RFC 7616 allows clients to re-use server-generated nonces for any URI
+ * in the same "protection space" which by default consists of all server
+ * URIs.
+ * Before #MHD_VERSION 0x00097701 this was default (and only supported)
+ * nonce bind type.
+ */
+ MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_URI = 1 << 1,
+
+ /**
+ * Generated nonces are valid only for the same URI including URI parameters
+ * and request method (GET, POST etc).
+ * This value implies #MHD_DAUTH_BIND_NONCE_URI.
+ * Not recommended for that same reasons as #MHD_DAUTH_BIND_NONCE_URI.
+ */
+ MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_URI_PARAMS = 1 << 2,
+
+ /**
+ * Generated nonces are valid only for the single client's IP.
+ * While it looks like security improvement, in practice the same client may
+ * jump from one IP to another (mobile or Wi-Fi handover, DHCP re-assignment,
+ * Multi-NAT, different proxy chain and other reasons), while IP address
+ * spoofing could be used relatively easily.
+ */
+ MHD_DAEMON_OPTION_VALUE_DAUTH_BIND_NONCE_CLIENT_IP = 1 << 3
};
@@ -9439,16 +9439,16 @@ enum MHD_FIXED_ENUM_MHD_APP_SET_ MHD_DigestAuthQOP
*/
MHD_DIGEST_AUTH_QOP_NONE = 1 << 0,
- /**
- * The 'auth' QOP type.
- */
- MHD_DIGEST_AUTH_QOP_AUTH = 1 << 1,
+ /**
+ * The 'auth' QOP type.
+ */
+ MHD_DIGEST_AUTH_QOP_AUTH = 1 << 1,
- /**
- * The 'auth-int' QOP type.
- * Not supported by MHD for authentication.
- */
- MHD_DIGEST_AUTH_QOP_AUTH_INT = 1 << 2
+ /**
+ * The 'auth-int' QOP type.
+ * Not supported by MHD for authentication.
+ */
+ MHD_DIGEST_AUTH_QOP_AUTH_INT = 1 << 2
};
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 126/335: m1 report update, (continued)
- [libmicrohttpd] 126/335: m1 report update, gnunet, 2024/07/27
- [libmicrohttpd] 136/335: microhttpd.h: backported formatting workaround, gnunet, 2024/07/27
- [libmicrohttpd] 128/335: Unified Work Mode options names, gnunet, 2024/07/27
- [libmicrohttpd] 142/335: microhttpd2.h: fixes for doxy reported warnings, gnunet, 2024/07/27
- [libmicrohttpd] 129/335: Updated Work Mode options in comments, gnunet, 2024/07/27
- [libmicrohttpd] 116/335: script: updated, gnunet, 2024/07/27
- [libmicrohttpd] 119/335: add example, gnunet, 2024/07/27
- [libmicrohttpd] 138/335: english fixes, gnunet, 2024/07/27
- [libmicrohttpd] 137/335: microhttpd2.h: fixed macro which had strange parsing results, gnunet, 2024/07/27
- [libmicrohttpd] 139/335: microhttpd2.h: updated and reduced the list of required system types, gnunet, 2024/07/27
- [libmicrohttpd] 131/335: Partial revert of 83205a8ab9f030408f8cb89c8cfa46196a5eef04.,
gnunet <=
- [libmicrohttpd] 133/335: Fixed name of the option parameter in the database, gnunet, 2024/07/27
- [libmicrohttpd] 135/335: microhttpd2.h: workaround for uncrustify bug, gnunet, 2024/07/27
- [libmicrohttpd] 152/335: -fix config, gnunet, 2024/07/27
- [libmicrohttpd] 154/335: Fixed reused enum values, gnunet, 2024/07/27
- [libmicrohttpd] 141/335: D Options DB: update, gnunet, 2024/07/27
- [libmicrohttpd] 155/335: microhttpd2.h: applied formatting, gnunet, 2024/07/27
- [libmicrohttpd] 157/335: stash, gnunet, 2024/07/27
- [libmicrohttpd] 144/335: add version check to uncrustify hook, gnunet, 2024/07/27
- [libmicrohttpd] 143/335: -fix _some_ compiler errors, gnunet, 2024/07/27
- [libmicrohttpd] 147/335: Fixed data in request options DB, gnunet, 2024/07/27