Skip to content

[DOC] Replace removed method in example for OpenSSL::Config#to_s #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions ext/openssl/ossl_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,16 @@ static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_conf_value, CONF_VALUE, VALUE)
*
* Gets the parsable form of the current configuration.
*
* Given the following configuration being created:
* Given the following configuration file being loaded:
*
* config = OpenSSL::Config.new
* #=> #<OpenSSL::Config sections=[]>
* config['default'] = {"foo"=>"bar","baz"=>"buz"}
* #=> {"foo"=>"bar", "baz"=>"buz"}
* config = OpenSSL::Config.load('baz.cnf')
* #=> #<OpenSSL::Config sections=["default"]>
* puts config.to_s
* #=> [ default ]
* # foo=bar
* # baz=buz
*
* You can parse get the serialized configuration using #to_s and then parse
* You can get the serialized configuration using #to_s and then parse
* it later:
*
* serialized_config = config.to_s
Expand Down
Loading