]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl: deprecate --random-file and --egd-file
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 May 2022 09:06:07 +0000 (11:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 17 May 2022 09:06:07 +0000 (11:06 +0200)
As libcurl no longer has any functionality for them, the tool now does
nothing with them.

Closes #8670

docs/cmdline-opts/egd-file.d
docs/cmdline-opts/random-file.d
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_operate.c

index cd3450a214a7ef24f32ebbea9aa61aa9fc2aae00..76031f2eb3680e9026e0fa6220146895af5f08e7 100644 (file)
@@ -7,5 +7,8 @@ Category: tls
 Example: --egd-file /random/here $URL
 Added: 7.7
 ---
+Deprecated option. This option is ignored by curl since 7.84.0. Prior to that
+it only had an effect on curl if built to use old versions of OpenSSL.
+
 Specify the path name to the Entropy Gathering Daemon socket. The socket is
 used to seed the random engine for SSL connections.
index fe56f574faa93a834c5f26ce2c59cadedc146c9e..d41b00140ee8c101167a6edeb65dfba0c91a0af7 100644 (file)
@@ -6,6 +6,8 @@ Example: --random-file rubbish $URL
 Added: 7.7
 See-also: egd-file
 ---
+Deprecated option. This option is ignored by curl since 7.84.0. Prior to that
+it only had an effect on curl if built to use old versions of OpenSSL.
+
 Specify the path name to file containing what will be considered as random
-data. The data may be used to seed the random engine for SSL connections. See
-also the --egd-file option.
+data. The data may be used to seed the random engine for SSL connections.
index ecc266a06579fb1688e81269d663d5306f1e5dcb..c56e86f5e49d89966953884237b4b9fbc48d551a 100644 (file)
@@ -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);
index c7cbab4bd79e23d7d683d6b6343fb1e9a934aa04..058bbd41c553dde27c19c3c5c13204565b201989 100644 (file)
@@ -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 */
index cff1839b03e4c8e53157023057daaee18b6a9fda..020567565e6c396ceb52cec00f8efe9e271a4205 100644 (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);
index 67de59c0a75c0e28385400bb9373b9a03e946cb3..e977cce7adf8f7a37a842543ba1c44d3f54c8ab1 100644 (file)
@@ -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));