https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112011-07-27T10:36:31ZRuby Issue Tracking SystemRuby master - Feature #5103: [ext/openssl] Object equality for objects based on ASN.1 structureshttps://bugs.ruby-lang.org/issues/5103?journal_id=197522011-07-27T10:36:31Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>Is object equality on ASN.1 structures not useful or hard?</p> Ruby master - Feature #5103: [ext/openssl] Object equality for objects based on ASN.1 structureshttps://bugs.ruby-lang.org/issues/5103?journal_id=197532011-07-27T10:45:12ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul></ul><p>Eric Hodel wrote:</p>
<blockquote>
<p>Is object equality on ASN.1 structures not useful or hard?</p>
</blockquote>
<p>I think it could be quite useful, for example when comparing certificates. Right now an easy way to do this is by comparing cert1.to_der == cert2.to_der.<br>
But still I would prefer the more intuitive cert1 == cert2 and implement it so that it actually compares the binary DER representation internally. This would be quite easy to implement since all ASN.1-based classes feature a to_der method already.</p> Ruby master - Feature #5103: [ext/openssl] Object equality for objects based on ASN.1 structureshttps://bugs.ruby-lang.org/issues/5103?journal_id=331892012-11-20T20:48:39Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Target version</strong> changed from <i>1.9.4</i> to <i>2.6</i></li></ul> Ruby master - Feature #5103: [ext/openssl] Object equality for objects based on ASN.1 structureshttps://bugs.ruby-lang.org/issues/5103?journal_id=541792015-09-13T03:32:37Zzzak (zzak _)
<ul><li><strong>Assignee</strong> changed from <i>MartinBosslet (Martin Bosslet)</i> to <i>7150</i></li></ul>