From 93c7bf52ac1fc5ba3afdda2f5f82dda6d565732a Mon Sep 17 00:00:00 2001 From: Yuki Morohoshi Date: Thu, 10 Oct 2024 16:04:23 +0900 Subject: [PATCH 1/2] [DOC] Replace removed method in example for OpenSSL::Config#to_s --- ext/openssl/ossl_config.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 55875028b..a47e0815d 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -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 configurating file being loaded: * - * config = OpenSSL::Config.new - * #=> # - * config['default'] = {"foo"=>"bar","baz"=>"buz"} - * #=> {"foo"=>"bar", "baz"=>"buz"} + * config = OpenSSL::Config.load('baz.cnf') + * #=> # * 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 From 26370636f3c77575598f7457dfd66bb1bffde328 Mon Sep 17 00:00:00 2001 From: Yuki Morohoshi Date: Fri, 11 Oct 2024 17:10:55 +0900 Subject: [PATCH 2/2] [DOC] better wording for OpenSSL::Config document. Co-authored-by: Olle Jonsson --- ext/openssl/ossl_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index a47e0815d..203d7ef29 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -305,7 +305,7 @@ static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_conf_value, CONF_VALUE, VALUE) * * Gets the parsable form of the current configuration. * - * Given the following configurating file being loaded: + * Given the following configuration file being loaded: * * config = OpenSSL::Config.load('baz.cnf') * #=> #