]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote,gateway: use MHD_USE_TLS instead of MHD_USE_SSL
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 04:19:52 +0000 (13:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 04:37:10 +0000 (13:37 +0900)
The option is renamed in libmicrohttpd-0.9.52.

src/journal-remote/journal-gatewayd.c
src/journal-remote/journal-remote.c
src/journal-remote/microhttpd-util.h

index 9a1c5b76ca4b29d1417b730943a23ac2cdebe971..e75edce12742862617edd9875b99da3ab7cd5fb4 100644 (file)
@@ -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};
                 }
index 810206c6216d5fcb4b4d3e55fe12a7c7ff635466..a658301252b89824da5e7d84378871f3b8a896dd 100644 (file)
@@ -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)
index 7f88c2cb7d518dd821d358665235511be426357e..0e669aa1ad66dec767f5141a7db779a3b8d400e2 100644 (file)
 #  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 */