Skip to content

Commit

Permalink
Merge pull request #805 from hoshi-sano/doc-config-to_s
Browse files Browse the repository at this point in the history
[DOC] Replace removed method in example for OpenSSL::Config#to_s
  • Loading branch information
rhenium authored Oct 31, 2024
2 parents a3f0f6a + 2637063 commit c8693f1
Showing 1 changed file with 4 additions and 6 deletions.
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

0 comments on commit c8693f1

Please sign in to comment.