dirmngr: Fix https never reported in general help
authorAndre Heinecke <aheinecke@intevation.de>
Fri, 15 Apr 2016 15:50:07 +0000 (17:50 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Fri, 15 Apr 2016 15:50:07 +0000 (17:50 +0200)
* dirmngr/ks-engine-http.c (ks_hkp_help): Also print https
when supported and no uri provided.

--
Wrong reporting was pointed out by K_F, again.

dirmngr/ks-engine-http.c

index 882777e..8232313 100644 (file)
@@ -44,8 +44,14 @@ ks_http_help (ctrl_t ctrl, parsed_uri_t uri)
     "Supported methods: fetch\n";
   gpg_error_t err;
 
+#if  HTTP_USE_GNUTLS || HTTP_USE_NTBTLS
+  const char data2[] = "  http\n  https";
+#else
+  const char data2[] = "  http";
+#endif
+
   if (!uri)
-    err = ks_print_help (ctrl, "  http");
+    err = ks_print_help (ctrl, data2);
   else if (uri->is_http && strcmp (uri->scheme, "hkp"))
     err = ks_print_help (ctrl, data);
   else