diff options
author | Kazuki Yamaguchi <[email protected]> | 2021-02-17 22:58:40 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-03-16 19:37:06 +0900 |
commit | 1eb6d8aa63d7ada403adb0db12382d264dea5521 (patch) | |
tree | f351356974d6255f2e359b30f4d59b3f966cc01f /sample/openssl/cert2text.rb | |
parent | 1ad222477344597038d7ec08885a41f547c2a3b4 (diff) |
[ruby/openssl] bn: check -1 return from BIGNUM functions
Although the manpage says that BIGNUM functions return 0 on error,
OpenSSL versions before 1.0.2n and current LibreSSL versions may return
-1 instead.
Note that the implementation of OpenSSL::BN#mod_inverse is extracted
from BIGNUM_2c() macro as it didn't really share the same function
signature with others.
https://github.com/ruby/openssl/commit/9b59f34345
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'sample/openssl/cert2text.rb')
0 files changed, 0 insertions, 0 deletions