instance method
OpenSSL::ASN1::ObjectId#==
(::OpenSSL::ASN1::ObjectId other) -> bool
oid == other_oid => true or false
ext/openssl/ossl_asn1.c
View on GitHub ↗
static VALUE
ossl_asn1obj_eq(VALUE self, VALUE other)
{
VALUE oid1, oid2;
if (!rb_obj_is_kind_of(other, cASN1ObjectId))
return Qfalse;
oid1 = ossl_asn1obj_get_oid(self);
oid2 = ossl_asn1obj_get_oid(other);
return rb_str_equal(oid1, oid2);
}
Returns true if other_oid is the same as oid.