diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index e6090fbb..3387e500 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t; | |||
132 | * Current version of the library. | 132 | * Current version of the library. |
133 | * 0x01093001 = 1.9.30-1. | 133 | * 0x01093001 = 1.9.30-1. |
134 | */ | 134 | */ |
135 | #define MHD_VERSION 0x00096701 | 135 | #define MHD_VERSION 0x00096702 |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * MHD-internal return code for "YES". | 138 | * MHD-internal return code for "YES". |
@@ -1691,10 +1691,35 @@ enum MHD_OPTION | |||
1691 | * followed by a argument of type `gnutls_certificate_retrieve_function3 *`. | 1691 | * followed by a argument of type `gnutls_certificate_retrieve_function3 *`. |
1692 | * This option provides an | 1692 | * This option provides an |
1693 | * alternative/extension to #MHD_OPTION_HTTPS_CERT_CALLBACK. | 1693 | * alternative/extension to #MHD_OPTION_HTTPS_CERT_CALLBACK. |
1694 | * You must use this version if you want to use OCSP stapling. | 1694 | * You must use this version if you want to use OCSP stapling. |
1695 | * Using this option requires GnuTLS 3.6.3 or higher. | 1695 | * Using this option requires GnuTLS 3.6.3 or higher. |
1696 | */ | 1696 | */ |
1697 | MHD_OPTION_HTTPS_CERT_CALLBACK2 = 31 | 1697 | MHD_OPTION_HTTPS_CERT_CALLBACK2 = 31, |
1698 | |||
1699 | /** | ||
1700 | * Allows the application to disable certain sanity precautions | ||
1701 | * in MHD. With these, the client can break the HTTP protocol, | ||
1702 | * so this should never be used in production. The options are, | ||
1703 | * however, useful for testing HTTP clients against "broken" | ||
1704 | * server implementations. | ||
1705 | * This argument must be followed by an "unsigned int", corresponding | ||
1706 | * to an `enum MHD_DisableSanityCheck`. | ||
1707 | */ | ||
1708 | MHD_OPTION_SERVER_INSANITY = 32 | ||
1709 | }; | ||
1710 | |||
1711 | |||
1712 | /** | ||
1713 | * Bitfield for the #MHD_OPTION_SERVER_INSANITY specifying | ||
1714 | * which santiy checks should be disabled. | ||
1715 | */ | ||
1716 | enum MHD_DisableSanityCheck | ||
1717 | { | ||
1718 | /** | ||
1719 | * All sanity checks are enabled. | ||
1720 | */ | ||
1721 | MHD_DSC_SANE = 0 | ||
1722 | |||
1698 | }; | 1723 | }; |
1699 | 1724 | ||
1700 | 1725 | ||
@@ -2924,7 +2949,14 @@ enum MHD_ResponseFlags | |||
2924 | * #MHD_RF_HTTP_VERSION_1_0_ONLY flag, the response's HTTP version will | 2949 | * #MHD_RF_HTTP_VERSION_1_0_ONLY flag, the response's HTTP version will |
2925 | * always be set to 1.0 and "Connection" headers are still supported. | 2950 | * always be set to 1.0 and "Connection" headers are still supported. |
2926 | */ | 2951 | */ |
2927 | MHD_RF_HTTP_VERSION_1_0_RESPONSE = 2 | 2952 | MHD_RF_HTTP_VERSION_1_0_RESPONSE = 2, |
2953 | |||
2954 | /** | ||
2955 | * Disable sanity check preventing clients from manually | ||
2956 | * setting the HTTP content length option. | ||
2957 | */ | ||
2958 | MHD_RF_INSANITY_HEADER_CONTENT_LENGTH = 4 | ||
2959 | |||
2928 | 2960 | ||
2929 | }; | 2961 | }; |
2930 | 2962 | ||