aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-10-12 15:57:00 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-10-12 16:43:33 +0900
commit5c4af48a35c5c6bea10fd86a848a564e9f2f84b0 (patch)
treeb683036a7075d433f475829127597cb0738a9429 /lib
parente4727829837a4a4de173a54ddd6514053fce1b5a (diff)
downloadruby-openssl-5c4af48a35c5c6bea10fd86a848a564e9f2f84b0.tar.gz
x509req: implement X509::Request#==
Diffstat (limited to 'lib')
-rw-r--r--lib/openssl/x509.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb
index 6b220142..98358f90 100644
--- a/lib/openssl/x509.rb
+++ b/lib/openssl/x509.rb
@@ -204,5 +204,12 @@ module OpenSSL
to_der == other.to_der
end
end
+
+ class Request
+ def ==(other)
+ return false unless Request === other
+ to_der == other.to_der
+ end
+ end
end
end