libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4c0cf12617719fa33b7e9315cf29ee1c74ef06dc
parent a9c191d2db7688b596d5c42ac3756a69bc7b7ff8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 27 Apr 2017 22:04:36 +0300

Fixed processing MHD_OPTION_HTTPS_CRED_TYPE in MHD_OPTION_ARRAY.
Underlying type can be not int.

Diffstat:
Msrc/microhttpd/daemon.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -5098,14 +5098,16 @@ parse_options_va (struct MHD_Daemon *daemon, return MHD_NO; break; /* all options taking 'enum' */ +#ifdef HTTPS_SUPPORT case MHD_OPTION_HTTPS_CRED_TYPE: if (MHD_YES != parse_options (daemon, servaddr, opt, - (int) oa[i].value, + (gnutls_credentials_type_t) oa[i].value, MHD_OPTION_END)) return MHD_NO; break; +#endif /* HTTPS_SUPPORT */ /* all options taking 'MHD_socket' */ case MHD_OPTION_LISTEN_SOCKET: if (MHD_YES != parse_options (daemon,