diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 83006001..d3765b6c 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -1562,6 +1562,9 @@ enum MHD_DAuthBindNonce | |||
1562 | * for any request in the same "protection space". | 1562 | * for any request in the same "protection space". |
1563 | * CPU is loaded less when this value is used when checking client's | 1563 | * CPU is loaded less when this value is used when checking client's |
1564 | * authorisation request. | 1564 | * authorisation request. |
1565 | * This mode gives MHD maximum flexibility for nonces generation and can | ||
1566 | * prevent possible nonce collisions (and corresponding log warning messages) | ||
1567 | * when clients' requests are intensive. | ||
1565 | * This value cannot be combined with other values. | 1568 | * This value cannot be combined with other values. |
1566 | */ | 1569 | */ |
1567 | MHD_DAUTH_BIND_NONCE_NONE = 0, | 1570 | MHD_DAUTH_BIND_NONCE_NONE = 0, |
@@ -1596,9 +1599,6 @@ enum MHD_DAuthBindNonce | |||
1596 | * jump from one IP to another (mobile or Wi-Fi handover, DHCP re-assignment, | 1599 | * jump from one IP to another (mobile or Wi-Fi handover, DHCP re-assignment, |
1597 | * Multi-NAT, different proxy chain and other reasons), while IP address | 1600 | * Multi-NAT, different proxy chain and other reasons), while IP address |
1598 | * spoofing could be used relatively easily. | 1601 | * spoofing could be used relatively easily. |
1599 | * However, if server gets intensive requests with Digest Authentication | ||
1600 | * this value helps to generate unique nonces for several requests, received | ||
1601 | * exactly at the same time (within one millisecond) from different clients. | ||
1602 | */ | 1602 | */ |
1603 | MHD_DAUTH_BIND_NONCE_CLIENT_IP = 1 << 3 | 1603 | MHD_DAUTH_BIND_NONCE_CLIENT_IP = 1 << 3 |
1604 | } _MHD_FLAGS_ENUM; | 1604 | } _MHD_FLAGS_ENUM; |
@@ -2014,6 +2014,7 @@ enum MHD_OPTION | |||
2014 | * #MHD_digest_auth_check3() and similar functions. | 2014 | * #MHD_digest_auth_check3() and similar functions. |
2015 | * This option should be followed by an 'unsigned int` argument with value | 2015 | * This option should be followed by an 'unsigned int` argument with value |
2016 | * formed as bitwise OR combination of #MHD_DAuthBindNonce values. | 2016 | * formed as bitwise OR combination of #MHD_DAuthBindNonce values. |
2017 | * When not specified, default value #MHD_DAUTH_BIND_NONCE_NONE is used. | ||
2017 | * @note Available since #MHD_VERSION 0x00097531 | 2018 | * @note Available since #MHD_VERSION 0x00097531 |
2018 | */ | 2019 | */ |
2019 | MHD_OPTION_DIGEST_AUTH_NONCE_BIND_TYPE = 36 | 2020 | MHD_OPTION_DIGEST_AUTH_NONCE_BIND_TYPE = 36 |