aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_ec.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-18 11:28:26 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-18 11:36:21 +0900
commit31b5557d68680142463cc19b93fe543b98ae3691 (patch)
tree6bd71600225b75269edd614ef0bad44d765c7ed9 /ext/openssl/ossl_pkey_ec.c
parentf6ffe07159254e925d3f89f8460ceda62000b6e2 (diff)
downloadruby-31b5557d68680142463cc19b93fe543b98ae3691.tar.gz
openssl: fix equality test methods of OpenSSL::BN
* ext/openssl/ossl_bn.c (try_convert_to_bnptr): Extracted from GetBNPtr(). This doesn't raise exception but returns NULL on error. (GetBNPtr): Raise TypeError if conversion fails. (ossl_bn_eq): Implement BN#==. (ossl_bn_eql): #eql? should not raise TypeError even if the argument is not compatible with BN. (ossl_bn_hash): Implement BN#hash. * ext/openssl/ossl_bn.c (Init_ossl_bn): Define #== and #hash. * test/openssl/test_bn.rb: Test BN#eql?, #== and #hash
Diffstat (limited to 'ext/openssl/ossl_pkey_ec.c')
0 files changed, 0 insertions, 0 deletions