]> granicus.if.org Git - curl/commitdiff
curl --version: show PSL if the run-time lib has it enabled
authorDaniel Stenberg <daniel@haxx.se>
Sun, 18 Feb 2018 22:09:24 +0000 (23:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 18 Feb 2018 22:09:24 +0000 (23:09 +0100)
... not of the #define was set at build-time!

src/tool_help.c

index 70b2e8a1bff9a2edc4c125c671c2681343919ce3..751b43aca9ed2bbbe761e59ae7bd00586e00b6d5 100644 (file)
@@ -507,7 +507,8 @@ static const struct feat feats[] = {
   {"HTTP2",          CURL_VERSION_HTTP2},
   {"UnixSockets",    CURL_VERSION_UNIX_SOCKETS},
   {"HTTPS-proxy",    CURL_VERSION_HTTPS_PROXY},
-  {"MultiSSL",       CURL_VERSION_MULTI_SSL}
+  {"MultiSSL",       CURL_VERSION_MULTI_SSL},
+  {"PSL",            CURL_VERSION_PSL},
 };
 
 void tool_help(void)
@@ -550,9 +551,6 @@ void tool_version_info(void)
     }
 #ifdef USE_METALINK
     printf("Metalink ");
-#endif
-#ifdef USE_LIBPSL
-    printf("PSL ");
 #endif
     puts(""); /* newline */
   }