Skip to content

Remove examples from deprecated options - #13540

Closed
danielgustafsson wants to merge 2 commits into
curl:masterfrom
danielgustafsson:dg-no-examples
Closed

Remove examples from deprecated options#13540
danielgustafsson wants to merge 2 commits into
curl:masterfrom
danielgustafsson:dg-no-examples

Conversation

@danielgustafsson

Copy link
Copy Markdown
Member

Manpages which document deprecated CURLOPT_ or CURLINFO_ should not be required to have an EXAMPLE section since they might effectively be dead no-ops which we don't want to trick users into believing they can use by copying example code.

CURLOPT_EGDSOCKET and CURLOPT_RANDOM_FILE are both completely dead so remove their example sections since the code there is useless. There is still a way to inject a random file for OpenSSL older than 1.1.0 but it's not what the example showed (and it's not even done with this option) so we refrain from documenting it here.

Manpages which document deprecated CURLOPT_ or CURLINFO_ are not
required to have an EXAMPLE section since they might effectively
be dead no-ops which we don't want to trick users into believing
they can use by copying example code.

Closes: #xxxx
CURLOPT_EGDSOCKET and CURLOPT_RANDOM_FILE are both completely dead
so remove their example sections since the code there is useless.
There is still a way to inject a random file for OpenSSL older than
1.1.0 but it's not what the example showed (and it's not even done
with this option) so we refrain from documenting it here.
@github-actions github-actions Bot added the tests label May 5, 2024
@danielgustafsson danielgustafsson changed the title Dg no examples Remove examples from deprecated options May 6, 2024
danielgustafsson added a commit that referenced this pull request May 6, 2024
CURLOPT_EGDSOCKET and CURLOPT_RANDOM_FILE are both completely dead
so remove their example sections since the code there is useless.
There is still a way to inject a random file for OpenSSL older than
1.1.0 but it's not what the example showed (and it's not even done
with this option) so we refrain from documenting it here.

Closes: #13540
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants