From: Yu Watanabe Date: Fri, 28 Jul 2017 04:19:52 +0000 (+0900) Subject: journal-remote,gateway: use MHD_USE_TLS instead of MHD_USE_SSL X-Git-Tag: v235~285^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c831aa7554fa9dcb56e68db884022699e1f4a881;p=thirdparty%2Fsystemd.git journal-remote,gateway: use MHD_USE_TLS instead of MHD_USE_SSL The option is renamed in libmicrohttpd-0.9.52. --- diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index 9a1c5b76ca4..e75edce1274 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -1053,10 +1053,10 @@ int main(int argc, char *argv[]) { {MHD_OPTION_HTTPS_MEM_KEY, 0, arg_key_pem}; opts[opts_pos++] = (struct MHD_OptionItem) {MHD_OPTION_HTTPS_MEM_CERT, 0, arg_cert_pem}; - flags |= MHD_USE_SSL; + flags |= MHD_USE_TLS; } if (arg_trust_pem) { - assert(flags & MHD_USE_SSL); + assert(flags & MHD_USE_TLS); opts[opts_pos++] = (struct MHD_OptionItem) {MHD_OPTION_HTTPS_MEM_TRUST, 0, arg_trust_pem}; } diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 810206c6216..a658301252b 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -671,7 +671,7 @@ static int setup_microhttpd_server(RemoteServer *s, opts[opts_pos++] = (struct MHD_OptionItem) {MHD_OPTION_HTTPS_MEM_CERT, 0, (char*) cert}; - flags |= MHD_USE_SSL; + flags |= MHD_USE_TLS; if (trust) opts[opts_pos++] = (struct MHD_OptionItem) diff --git a/src/journal-remote/microhttpd-util.h b/src/journal-remote/microhttpd-util.h index 7f88c2cb7d5..0e669aa1ad6 100644 --- a/src/journal-remote/microhttpd-util.h +++ b/src/journal-remote/microhttpd-util.h @@ -41,6 +41,11 @@ # define MHD_USE_EPOLL MHD_USE_EPOLL_LINUX_ONLY #endif +/* Renamed in µhttpd 0.9.52 */ +#ifndef MHD_USE_SSL +# define MHD_USE_TLS MHD_USE_SSL +#endif + /* Both the old and new names are defines, check for the new one. */ /* Renamed in µhttpd 0.9.53 */