[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/02: Fixed processing MHD_OPTION_HTTPS_CR
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/02: Fixed processing MHD_OPTION_HTTPS_CRED_TYPE in MHD_OPTION_ARRAY. Underlying type can be not int. |
Date: |
Thu, 27 Apr 2017 21:37:20 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 4c0cf12617719fa33b7e9315cf29ee1c74ef06dc
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Apr 27 22:04:36 2017 +0300
Fixed processing MHD_OPTION_HTTPS_CRED_TYPE in MHD_OPTION_ARRAY.
Underlying type can be not int.
---
src/microhttpd/daemon.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index f719463e..b528622d 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
address@hidden