diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 14:24:59 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 15:53:49 +0900 |
commit | b99f1ddc05dbdc69fc9b79fd65d1069d96c83b86 (patch) | |
tree | 0be0c4bbb3d0c850a41dbb30e4f11642e96a4d17 /lib/openssl | |
parent | 55956cce10d7a176b71eaeada4b70adc16300146 (diff) | |
download | ruby-openssl-b99f1ddc05dbdc69fc9b79fd65d1069d96c83b86.tar.gz |
x509attr: implement X509::Attribute#==
Diffstat (limited to 'lib/openssl')
-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 2f87ea19..bc8ccc7d 100644 --- a/lib/openssl/x509.rb +++ b/lib/openssl/x509.rb @@ -165,6 +165,13 @@ module OpenSSL end end + class Attribute + def ==(other) + return false unless Attribute === other + to_der == other.to_der + end + end + class StoreContext def cleanup warn "(#{caller.first}) OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement" if $VERBOSE |