diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 5c030c8d..69f9b784 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -774,7 +774,24 @@ enum MHD_OPTION | |||
774 | * Increment to use for growing the read buffer (followed by a | 774 | * Increment to use for growing the read buffer (followed by a |
775 | * `size_t`). Must fit within #MHD_OPTION_CONNECTION_MEMORY_LIMIT. | 775 | * `size_t`). Must fit within #MHD_OPTION_CONNECTION_MEMORY_LIMIT. |
776 | */ | 776 | */ |
777 | MHD_OPTION_CONNECTION_MEMORY_INCREMENT = 21 | 777 | MHD_OPTION_CONNECTION_MEMORY_INCREMENT = 21, |
778 | |||
779 | /** | ||
780 | * Use a callback to determine which X.509 certificate should be | ||
781 | * used for a given HTTPS connection. This option should be | ||
782 | * followed by a argument of type `gnutls_certificate_retrieve_function2 *`. | ||
783 | * This option provides an | ||
784 | * alternative to #MHD_OPTION_HTTPS_MEM_KEY, | ||
785 | * #MHD_OPTION_HTTPS_MEM_CERT. You must use this version if | ||
786 | * multiple domains are to be hosted at the same IP address using | ||
787 | * TLS's Server Name Indication (SNI) extension. In this case, | ||
788 | * the callback is expected to select the correct certificate | ||
789 | * based on the SNI information provided. The callback is expected | ||
790 | * to access the SNI data using `gnutls_server_name_get()`. | ||
791 | * Using this option requires GnuTLS 3.0 or higher. | ||
792 | */ | ||
793 | MHD_OPTION_HTTPS_CERT_CALLBACK = 22 | ||
794 | |||
778 | }; | 795 | }; |
779 | 796 | ||
780 | 797 | ||