diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 14:29:32 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-10-12 15:53:49 +0900 |
commit | 55956cce10d7a176b71eaeada4b70adc16300146 (patch) | |
tree | 73f0b906f98943b9f2c3f99fd2513c38c60d2f24 /lib | |
parent | e72d960db2623b21ee001b5a7b9d9e6ff55bdf94 (diff) | |
download | ruby-openssl-55956cce10d7a176b71eaeada4b70adc16300146.tar.gz |
x509ext: implement X509::Extension#==
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openssl/x509.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb index 6d31b98c..2f87ea19 100644 --- a/lib/openssl/x509.rb +++ b/lib/openssl/x509.rb @@ -41,6 +41,11 @@ module OpenSSL end class Extension + def ==(other) + return false unless Extension === other + to_der == other.to_der + end + def to_s # "oid = critical, value" str = self.oid str << " = " |