mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:03:32 +03:00
curl: deprecate --random-file and --egd-file
As libcurl no longer has any functionality for them, the tool now does nothing with them. Closes #8670
This commit is contained in:
parent
8d86718f3f
commit
84052154f7
6 changed files with 7 additions and 10 deletions
|
|
@ -52,8 +52,6 @@ static void free_config_fields(struct OperationConfig *config)
|
|||
{
|
||||
struct getout *urlnode;
|
||||
|
||||
Curl_safefree(config->random_file);
|
||||
Curl_safefree(config->egd_file);
|
||||
Curl_safefree(config->useragent);
|
||||
Curl_safefree(config->altsvc);
|
||||
Curl_safefree(config->hsts);
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@ struct State {
|
|||
|
||||
struct OperationConfig {
|
||||
bool remote_time;
|
||||
char *random_file;
|
||||
char *egd_file;
|
||||
char *useragent;
|
||||
struct curl_slist *cookies; /* cookies to serialize into a single line */
|
||||
char *cookiejar; /* write to this file */
|
||||
|
|
|
|||
|
|
@ -667,10 +667,8 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
GetStr(&config->dns_ipv6_addr, nextarg);
|
||||
break;
|
||||
case 'a': /* random-file */
|
||||
GetStr(&config->random_file, nextarg);
|
||||
break;
|
||||
case 'b': /* egd-file */
|
||||
GetStr(&config->egd_file, nextarg);
|
||||
break;
|
||||
case 'B': /* OAuth 2.0 bearer token */
|
||||
GetStr(&config->oauth_bearer, nextarg);
|
||||
|
|
|
|||
|
|
@ -1824,8 +1824,6 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
my_setopt_slist(curl, CURLOPT_TELNETOPTIONS, config->telnet_options);
|
||||
|
||||
/* new in libcurl 7.7: */
|
||||
my_setopt_str(curl, CURLOPT_RANDOM_FILE, config->random_file);
|
||||
my_setopt_str(curl, CURLOPT_EGDSOCKET, config->egd_file);
|
||||
my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS,
|
||||
(long)(config->connecttimeout * 1000));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue