mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 00:28:48 -05:00
tool_operhlp: Consolidated engine output code into tool_help
This commit is contained in:
parent
6969e24aee
commit
b98c74b67e
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#include "tool_panykey.h"
|
#include "tool_panykey.h"
|
||||||
#include "tool_help.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);
|
||||||
}
|
}
|
||||||
|
@ -34,20 +34,6 @@
|
|||||||
|
|
||||||
#include "memdebug.h" /* keep this as LAST include */
|
#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)
|
void clean_getout(struct Configurable *config)
|
||||||
{
|
{
|
||||||
struct getout *next;
|
struct getout *next;
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
#include "tool_setup.h"
|
#include "tool_setup.h"
|
||||||
|
|
||||||
void list_engines(const struct curl_slist *engines);
|
|
||||||
|
|
||||||
void clean_getout(struct Configurable *config);
|
void clean_getout(struct Configurable *config);
|
||||||
|
|
||||||
bool output_expected(const char *url, const char *uploadfile);
|
bool output_expected(const char *url, const char *uploadfile);
|
||||||
|
Loading…
Reference in New Issue
Block a user