aboutsummaryrefslogtreecommitdiffstats
path: root/lib/openssl/x509.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/openssl/x509.rb')
-rw-r--r--lib/openssl/x509.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb
index bc8ccc7d..6b220142 100644
--- a/lib/openssl/x509.rb
+++ b/lib/openssl/x509.rb
@@ -190,5 +190,19 @@ module OpenSSL
}
end
end
+
+ class CRL
+ def ==(other)
+ return false unless CRL === other
+ to_der == other.to_der
+ end
+ end
+
+ class Revoked
+ def ==(other)
+ return false unless Revoked === other
+ to_der == other.to_der
+ end
+ end
end
end