projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tool_operhlp: Consolidated engine output code into tool_help
[platform/upstream/curl.git]
/
src
/
tool_help.c
diff --git
a/src/tool_help.c
b/src/tool_help.c
index
7c74927
..
99d2768
100644
(file)
--- a/
src/tool_help.c
+++ b/
src/tool_help.c
@@
-23,7
+23,6
@@
#include "tool_panykey.h"
#include "tool_help.h"
#include "tool_panykey.h"
#include "tool_help.h"
-#include "tool_operhlp.h"
#include "memdebug.h" /* keep this as LAST include */
#include "memdebug.h" /* keep this as LAST include */
@@
-262,7
+261,18
@@
void tool_list_engines(CURL *curl)
{
struct curl_slist *engines = NULL;
{
struct curl_slist *engines = NULL;
+ /* Get the list of engines */
curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
- list_engines(engines);
+
+ puts("Build-time engines:");
+ if(engines) {
+ for(; engines; engines = engines->next)
+ printf(" %s\n", engines->data);
+ }
+ else {
+ puts(" <none>");
+ }
+
+ /* Cleanup the list of engines */
curl_slist_free_all(engines);
}
curl_slist_free_all(engines);
}