https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2011-06-22T17:41:09Z
Ruby Issue Tracking System
Ruby master - Bug #4885: [ext/openssl] Use BIO_reset and ERR_get_error in conjuntion
https://bugs.ruby-lang.org/issues/4885?journal_id=18142
2011-06-22T17:41:09Z
Anonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r32199.<br>
Martin, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>
<p>ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER<br>
fallback scenarios.</p>
</li>
<li>
<p>ext/openssl/ossl_pkey_dsa.c</p>
</li>
<li>
<p>ext/openssl/ossl_x509req.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkey_rsa.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkey_ec.c</p>
</li>
<li>
<p>ext/openssl/ossl_ssl_session.c</p>
</li>
<li>
<p>ext/openssl/ossl_x509crl.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkey.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkey_dh.c</p>
</li>
<li>
<p>ext/openssl/ossl_x509cert.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkcs7.c: Use OSSL_BIO_reset.</p>
</li>
<li>
<p>ext/openssl/ossl_ssl.c</p>
</li>
<li>
<p>ext/openssl/ossl_cipher.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkey_ec.c</p>
</li>
<li>
<p>ext/openssl/ossl_pkcs12.c</p>
</li>
<li>
<p>ext/openssl/ossl_ssl_session.c: Replace rb_raise occurences by<br>
ossl_raise. This automatically flushes OpenSSL's error queue.</p>
</li>
<li>
<p>ext/openssl/ossl_pkcs7.c: Raise error if DER fallback for parsing<br>
fails.</p>
</li>
<li>
<p>test/openssl/test_pkey_ec.rb</p>
</li>
<li>
<p>test/openssl/test_pkey_dsa.rb</p>
</li>
<li>
<p>test/openssl/test_pkey_rsa.rb: Add assertions that OpenSSL.errors is<br>
empty.</p>
</li>
<li>
<p>test/openssl/test_pkey_rsa.rb: Remove initial OpenSSL.errors call in<br>
test_new.<br>
[ Ruby 1.9 - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [ext/openssl] Use BIO_reset and ERR_get_error in conjuntion (Closed)" href="https://bugs.ruby-lang.org/issues/4885">#4885</a> ] <a href="/issues/4885">[ruby-core:37134]</a></p>
</li>
</ul>