aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-22 16:21:53 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-22 16:50:29 +0000
commitb98c74b67eb63300d32a9ed32f93d94c79c6476b (patch)
tree768d5e81c8d928bbec9458bd0ed7b0060a66f781 /src
parent6969e24aee2031d9f99b9281f452b5b496c1f353 (diff)
tool_operhlp: Consolidated engine output code into tool_help
Diffstat (limited to 'src')
-rw-r--r--src/tool_help.c14
-rw-r--r--src/tool_operhlp.c14
-rw-r--r--src/tool_operhlp.h2
3 files changed, 12 insertions, 18 deletions
diff --git a/src/tool_help.c b/src/tool_help.c
index 7c74927eb..99d276845 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -23,7 +23,6 @@
#include "tool_panykey.h"
#include "tool_help.h"
-#include "tool_operhlp.h"
#include "memdebug.h" /* keep this as LAST include */
@@ -262,7 +261,18 @@ void tool_list_engines(CURL *curl)
{
struct curl_slist *engines = NULL;
+ /* Get the list of 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);
}
diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c
index a0da01c8d..2ba788100 100644
--- a/src/tool_operhlp.c
+++ b/src/tool_operhlp.c
@@ -34,20 +34,6 @@
#include "memdebug.h" /* keep this as LAST include */
-/*
- * Print list of OpenSSL supported engines
- */
-void list_engines(const struct curl_slist *engines)
-{
- puts("Build-time engines:");
- if(!engines) {
- puts(" <none>");
- return;
- }
- for(; engines; engines = engines->next)
- printf(" %s\n", engines->data);
-}
-
void clean_getout(struct Configurable *config)
{
struct getout *next;
diff --git a/src/tool_operhlp.h b/src/tool_operhlp.h
index bfe298bf1..041ea5968 100644
--- a/src/tool_operhlp.h
+++ b/src/tool_operhlp.h
@@ -23,8 +23,6 @@
***************************************************************************/
#include "tool_setup.h"
-void list_engines(const struct curl_slist *engines);
-
void clean_getout(struct Configurable *config);
bool output_expected(const char *url, const char *uploadfile);