diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 15:57:00 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 16:43:33 +0900 |
commit | 5c4af48a35c5c6bea10fd86a848a564e9f2f84b0 (patch) | |
tree | b683036a7075d433f475829127597cb0738a9429 /lib | |
parent | e4727829837a4a4de173a54ddd6514053fce1b5a (diff) | |
download | ruby-openssl-5c4af48a35c5c6bea10fd86a848a564e9f2f84b0.tar.gz |
x509req: implement X509::Request#==
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openssl/x509.rb | 7 |
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 |