diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/openssl/lib/openssl/bn.rb | 4 | ||||
-rw-r--r-- | ext/openssl/lib/openssl/x509.rb | 4 |
3 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Sun May 15 14:07:40 2016 Kazuki Yamaguchi <k@rhe.jp> + + * ext/openssl/lib/openssl/bn.rb (inspect): Added. + + * ext/openssl/lib/openssl/x509.rb (X509::Name#inspect): Added. + Sun May 15 10:57:26 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> * vm_insnhelper.c (vm_get_ev_const): warn deprecated constant even diff --git a/ext/openssl/lib/openssl/bn.rb b/ext/openssl/lib/openssl/bn.rb index 6d6c96e42d..e3a6bd2b60 100644 --- a/ext/openssl/lib/openssl/bn.rb +++ b/ext/openssl/lib/openssl/bn.rb @@ -23,6 +23,10 @@ module OpenSSL q.text to_i.to_s } end + + def inspect + "#<#{self.class} #{to_s}>" + end end # BN end # OpenSSL diff --git a/ext/openssl/lib/openssl/x509.rb b/ext/openssl/lib/openssl/x509.rb index aef3456e0f..3caaacff12 100644 --- a/ext/openssl/lib/openssl/x509.rb +++ b/ext/openssl/lib/openssl/x509.rb @@ -152,6 +152,10 @@ module OpenSSL q.text to_s(OpenSSL::X509::Name::RFC2253) } end + + def inspect + "#<#{self.class} #{to_s(RFC2253)}>" + end end class StoreContext |