aboutsummaryrefslogtreecommitdiffstats
path: root/lib/openssl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/openssl.rb')
-rw-r--r--lib/openssl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/openssl.rb b/lib/openssl.rb
index 8baf452..d182220 100644
--- a/lib/openssl.rb
+++ b/lib/openssl.rb
@@ -156,7 +156,7 @@ end # defined? DH
#
# to_h is built-in method
#
- def to_str # "/A=B/C=D/E=F"
+ def to_s # "/A=B/C=D/E=F"
hash = self.to_h
str = ""
hash.keys.each do |key|
@@ -218,7 +218,7 @@ end # defined? DH
#
# to_a is built-in
#
- def to_str # "oid = critical, value"
+ def to_s # "oid = critical, value"
ary = self.to_a
str = ary[0] + " = "
str += "critical, " if ary[2] == true