diff options
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 96f394ff..19ec64e3 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -341,14 +341,37 @@ enum MHD_OPTION | |||
341 | */ | 341 | */ |
342 | MHD_OPTION_PER_IP_CONNECTION_LIMIT = 5, | 342 | MHD_OPTION_PER_IP_CONNECTION_LIMIT = 5, |
343 | 343 | ||
344 | /** | 344 | /** |
345 | * Bind daemon to the supplied sockaddr. this option should be followed by a | 345 | * Bind daemon to the supplied sockaddr. this option should be followed by a |
346 | * 'struct sockaddr *'. If 'MHD_USE_IPv6' is specified, the 'struct sockaddr*' | 346 | * 'struct sockaddr *'. If 'MHD_USE_IPv6' is specified, the 'struct sockaddr*' |
347 | * should point to a 'struct sockaddr_in6', otherwise to a 'struct sockaddr_in'. | 347 | * should point to a 'struct sockaddr_in6', otherwise to a 'struct sockaddr_in'. |
348 | */ | 348 | */ |
349 | MHD_OPTION_SOCK_ADDR = 6, | 349 | MHD_OPTION_SOCK_ADDR = 6, |
350 | 350 | ||
351 | /** | 351 | /** |
352 | * Specify a function that should be called before parsing the URI from | ||
353 | * the client. The specified callback function can be used for processing | ||
354 | * the URI (including the options) before it is parsed. The URI after | ||
355 | * parsing will no longer contain the options, which maybe inconvenient for | ||
356 | * logging. This option should be followed by two arguments, the first | ||
357 | * one must be of the form | ||
358 | * <pre> | ||
359 | * void * my_logger(void * cls, const char * uri) | ||
360 | * </pre> | ||
361 | * where the return value will be passed as | ||
362 | * (*con_cls) in calls to the MHD_AccessHandlerCallback | ||
363 | * when this request is processed later; returning a | ||
364 | * value of NULL has no special significance (however, | ||
365 | * note that if you return non-NULL, you can no longer | ||
366 | * rely on the first call to the access handler having | ||
367 | * NULL == *con_cls on entry;) | ||
368 | * "cls" will be set to the second argument following | ||
369 | * MHD_OPTION_URI_LOG_CALLBACK. Finally, uri will | ||
370 | * be the 0-terminated URI of the request. | ||
371 | */ | ||
372 | MHD_OPTION_URI_LOG_CALLBACK = 7, | ||
373 | |||
374 | /** | ||
352 | * Memory pointer for the private key (key.pem) to be used by the | 375 | * Memory pointer for the private key (key.pem) to be used by the |
353 | * HTTPS daemon. This option should be followed by an | 376 | * HTTPS daemon. This option should be followed by an |
354 | * "const char*" argument. | 377 | * "const char*" argument. |
@@ -513,8 +536,6 @@ enum MHD_GNUTLS_CipherAlgorithm | |||
513 | MHD_GNUTLS_CIPHER_AES_128_CBC, | 536 | MHD_GNUTLS_CIPHER_AES_128_CBC, |
514 | MHD_GNUTLS_CIPHER_AES_256_CBC, | 537 | MHD_GNUTLS_CIPHER_AES_256_CBC, |
515 | MHD_GNUTLS_CIPHER_ARCFOUR_40, | 538 | MHD_GNUTLS_CIPHER_ARCFOUR_40, |
516 | MHD_GNUTLS_CIPHER_CAMELLIA_128_CBC, | ||
517 | MHD_GNUTLS_CIPHER_CAMELLIA_256_CBC, | ||
518 | MHD_GNUTLS_CIPHER_RC2_40_CBC = 90, | 539 | MHD_GNUTLS_CIPHER_RC2_40_CBC = 90, |
519 | MHD_GNUTLS_CIPHER_DES_CBC | 540 | MHD_GNUTLS_CIPHER_DES_CBC |
520 | }; | 541 | }; |